We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3457238 commit 82909b3Copy full SHA for 82909b3
1 file changed
.github/workflows/npm-publish-github-packages.yml
@@ -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
29
30
31
0 commit comments