We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6553ae4 + 1702197 commit 44703bcCopy full SHA for 44703bc
1 file changed
.github/workflows/npm-publish.yml
@@ -16,6 +16,15 @@ jobs:
16
with:
17
node-version: 22
18
registry-url: https://registry.npmjs.org/
19
- - run: npm publish --tag dev
+ - name: Release a "dev" tag version.
20
+ if: 'github.event.release.prerelease'
21
+ run: npm publish --tag dev
22
env:
23
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
24
+ - name: Release a "stable" tag version.
25
+ if: '!github.event.release.prerelease'
26
+ run: npm publish --tag latest
27
+ env:
28
+ NODE_AUTH_TOKEN: ${{secrets.npm_token}}
29
+
30
0 commit comments