We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 27c6b95 + 9d957f0 commit 24acf45Copy full SHA for 24acf45
.github/workflows/publish.yml
@@ -0,0 +1,31 @@
1
+name: Publish
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - v*
7
8
+jobs:
9
+ publish:
10
+ name: Publish to npm
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout
14
+ uses: actions/checkout@v3
15
16
+ - name: Install node
17
+ uses: actions/setup-node@v3
18
+ with:
19
+ node-version: 14.x
20
+ registry-url: 'https://registry.npmjs.org'
21
22
+ - name: install dependencies
23
+ run: yarn install --frozen-lockfile
24
25
+ - name: auto-dist-tag
26
+ run: npx auto-dist-tag --write
27
28
+ - name: publish to npm
29
+ run: npm publish
30
+ env:
31
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
package.json
@@ -98,6 +98,9 @@
98
"github": {
99
"release": true,
100
"tokenRef": "GITHUB_AUTH"
101
+ },
102
+ "npm": {
103
+ "publish": false
104
}
105
106
0 commit comments