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 94dffab commit 55d7b18Copy full SHA for 55d7b18
1 file changed
.github/workflows/npm-publish.yml
@@ -0,0 +1,30 @@
1
+# This workflow will run tests using node and then publish a package to NPM
2
+
3
+name: Node.js Package
4
5
+on:
6
+ workflow_dispatch
7
8
+jobs:
9
+ build:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v2
13
+ - uses: actions/setup-node@v1
14
+ with:
15
+ node-version: 12
16
+ - run: npm install
17
+ - run: npm run test
18
19
+ publish-npm:
20
+ needs: build
21
22
23
24
25
26
27
+ registry-url: https://registry.npmjs.org/
28
+ - run: npm publish
29
+ env:
30
+ NODE_AUTH_TOKEN: ${{secrets.npm_token}}
0 commit comments