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 81202d6 commit 199488aCopy full SHA for 199488a
.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: Node.js Package
5
+on:
6
+ release:
7
+ types: [created]
8
+jobs:
9
+ build:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v2
13
+ # Setup .npmrc file to publish to npm
14
+ - uses: actions/setup-node@v2
15
+ with:
16
+ node-version: '12.x'
17
+ registry-url: 'https://registry.npmjs.org'
18
+ - run: npm install
19
+ - run: npm publish
20
+ env:
21
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments