main
1# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
4name: Node.js Package
5
6on:
7 release:
8 types: [created]
9
10jobs:
11 build:
12 runs-on: ubuntu-latest
13 steps:
14 - uses: actions/checkout@v4
15 - uses: actions/setup-node@v4
16 with:
17 node-version: 20
18 registry-url: https://registry.npmjs.org
19 - name: Install dependencies
20 run: npm ci
21 - name: Build
22 run: npm run build
23 - name: Publish package to npm
24 run: npm publish
25 env:
26 NODE_AUTH_TOKEN: ${{ secrets.npm_token }}