We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2cf37f commit 7df7ca0Copy full SHA for 7df7ca0
.github/workflows/npm-publish.yml
@@ -0,0 +1,21 @@
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
+
4
+name: Publish Node.js package to npm
5
+on:
6
+ release:
7
+ types: [created]
8
9
+jobs:
10
+ publish-npm:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v3
14
+ - uses: actions/setup-node@v3
15
+ with:
16
+ node-version: 16
17
+ registry-url: https://registry.npmjs.org/
18
+ - run: npm ci
19
+ - run: npm publish
20
+ env:
21
+ NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}
0 commit comments