UNPKG

624 BYAMLView Raw
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://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3
4name: Node.js Package
5
6on:
7 release:
8 types: [published]
9
10jobs:
11 publish-npm:
12 runs-on: ubuntu-latest
13 steps:
14 - uses: actions/checkout@v3
15 - uses: actions/setup-node@v3
16 with:
17 node-version: 16
18 registry-url: https://registry.npmjs.org/
19 - run: npm ci
20 - run: npm publish
21 env:
22 NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}