Skip to content

Commit 44703bc

Browse files
author
DS Software
committed
2 parents 6553ae4 + 1702197 commit 44703bc

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/npm-publish.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ jobs:
1616
with:
1717
node-version: 22
1818
registry-url: https://registry.npmjs.org/
19-
- run: npm publish --tag dev
19+
- name: Release a "dev" tag version.
20+
if: 'github.event.release.prerelease'
21+
run: npm publish --tag dev
2022
env:
2123
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

Comments
 (0)