Skip to content

Commit

Permalink
Merge pull request #3 from lisb/feature/update-build-config
Browse files Browse the repository at this point in the history
chore: update Node.js and GitHub Action versions
  • Loading branch information
krdlab authored Jun 8, 2023
2 parents 9c47597 + 6f62c6d commit 46c66b6
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,30 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 16, 18, 20 ]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12
- run: npm install
- run: npm test
node-version: ${{ matrix.node }}
- run: |
npm install
npm test
publish-npm:
needs: build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12
node-version: 18
registry-url: https://registry.npmjs.org/

- run: npm install
- run: npm publish
env:
Expand Down

0 comments on commit 46c66b6

Please sign in to comment.