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.
2 parents 6de1f01 + 55dc78b commit 5e312ccCopy full SHA for 5e312cc
.github/workflows/npm-publish.yml
@@ -0,0 +1,32 @@
1
+name: npm publish
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: 14
15
+ - run: npm ci
16
+ - run: npm run build --if-present
17
+ - run: npm test
18
19
+ publish-npm:
20
+ needs: build
21
22
23
24
25
26
27
+ registry-url: https://registry.npmjs.org/
28
29
30
+ - run: npm publish
31
+ env:
32
+ NODE_AUTH_TOKEN: ${{secrets.npm_token}}
0 commit comments