Skip to content

Commit 82909b3

Browse files
committed
NPM publish
1 parent 3457238 commit 82909b3

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
4+
name: Node.js Package
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
publish-gpr:
12+
# needs: build
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
packages: write
17+
steps:
18+
- uses: actions/checkout@v3
19+
- uses: actions/setup-node@v3
20+
with:
21+
node-version: 16
22+
registry-url: https://npm.pkg.github.com/
23+
- run: npm ci
24+
- run: npm publish
25+
env:
26+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
27+
28+
- uses: actions/setup-node@v3
29+
with:
30+
node-version: 16
31+
registry-url: https://npm.pkg.github.com/

0 commit comments

Comments
 (0)