Skip to content

Update publish step to node@20 #9

Update publish step to node@20

Update publish step to node@20 #9

Workflow file for this run

name: CI
on: push
jobs:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
node: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm test
- run: npm run coverage
- uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
publish:
needs: test
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}