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 90fdc01 commit 0d7e8dbCopy full SHA for 0d7e8db
.github/workflows/npm-publish.yml
@@ -0,0 +1,28 @@
1
+name: Publish to NPM
2
+
3
+on:
4
+ release:
5
+ types: [created]
6
7
+jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v2
12
+ - uses: actions/setup-node@v2
13
+ with:
14
+ node-version: 16
15
+ - run: npm test
16
17
+ publish-npm:
18
+ needs: build
19
20
21
22
23
24
25
+ registry-url: https://registry.npmjs.org/
26
+ - run: npm publish
27
+ env:
28
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
0 commit comments