We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4202d6 commit 22715daCopy full SHA for 22715da
.github/workflows/npm-publish.yml
@@ -3,6 +3,9 @@
3
4
name: Npm Publish Package
5
6
+env:
7
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
8
+
9
on:
10
release:
11
types: [created]
@@ -14,10 +17,13 @@ jobs:
14
17
- uses: actions/checkout@v3
15
18
- uses: actions/setup-node@v3
16
19
with:
- node-version: 16
20
+ node-version: 18
21
registry-url: https://registry.npmjs.org/
22
- run: npm ci
23
- run: npm run build
- - run: npm publish --access public
- env:
- NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
24
+ - name: Publish NPM
25
+ if: '!github.event.release.prerelease'
26
+ run: npm publish
27
+ - name: Publish NPM (beta)
28
+ if: 'github.event.release.prerelease'
29
+ run: npm publish --tag beta
0 commit comments