Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Run on both nodes node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
yanokwa committed Oct 20, 2021
1 parent 510b181 commit d5f0ea1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/npmjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,19 @@ on: [push, pull_request, release]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '14', '16' ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
node-version: ${{ matrix.node }}
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm test
- name: publish
if: github.event_name == 'release' && github.event.action == 'created'
- name: Run npm publish
if: github.event_name == 'release' && github.event.action == 'created' && matrix.node == '16'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit d5f0ea1

Please sign in to comment.