Generate random, alliterated animal names.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ci(actions): fix job execution order

On push to master, run tests and then attempt a release. On pull
requests to master when specific files are changed, run unit tests.

+8 -9
+3 -1
.github/workflows/release.yml
··· 6 6 7 7 jobs: 8 8 release: 9 - name: Release 9 + name: Test and Release 10 10 runs-on: ubuntu-18.04 11 11 steps: 12 12 - name: Checkout ··· 17 17 node-version: 14 18 18 - name: Install dependencies 19 19 run: npm ci 20 + - name: Run unit tests 21 + run: npm test 20 22 - name: Release 21 23 env: 22 24 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+5 -8
.github/workflows/unit-tests.yml
··· 4 4 name: Unit tests 5 5 6 6 on: 7 - push: 8 - branches: [ master ] 9 7 pull_request: 10 8 branches: [ master ] 11 - paths: 12 - - 'index.js' 13 - - 'test.js' 14 - - 'data/*.js' 15 - - 'package-lock.json' 9 + paths: 10 + - 'index.js' 11 + - 'test.js' 12 + - 'data/*.js' 13 + - 'package-lock.json' 16 14 17 15 jobs: 18 16 build: ··· 26 24 with: 27 25 node-version: 14 28 26 - run: npm ci 29 - - run: npm run build --if-present 30 27 - run: npm test