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 4879fbc commit c1db2d3Copy full SHA for c1db2d3
.github/workflows/package.yml
@@ -0,0 +1,33 @@
1
+name: Publish to NPM
2
+on:
3
+ push:
4
+ tags:
5
+ - v*
6
+
7
+jobs:
8
+ build-npm:
9
+ name: Build and Publish to NPM
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v2
13
+ - uses: actions/setup-node@v2
14
+ with:
15
+ node-version: '16.x'
16
+ registry-url: 'https://registry.npmjs.org'
17
+ - run: npm ci
18
+ - run: npm publish
19
+ env:
20
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
21
+ build-github:
22
+ name: Build and Publish to GITHUB
23
24
25
26
27
28
29
+ registry-url: 'https://npm.pkg.github.com'
30
31
32
33
+ NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments