Skip to content

Commit fec5d96

Browse files
committed
chore: add npm tag support for prerelease vs stable releases
- For prereleases: npm publish --tag beta - For stable releases: npm publish (defaults to latest tag) - Ensures npm registry tags match git tag behavior
1 parent 1b04deb commit fec5d96

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/publish-radfish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ jobs:
9292
id: npm-publish
9393
run: |
9494
set -e
95-
npm publish
95+
if [[ "${{ inputs.prerelease }}" == "true" ]]; then
96+
npm publish --tag beta
97+
else
98+
npm publish
99+
fi
96100
working-directory: packages/radfish
97101
env:
98102
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/publish-react-radfish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@ jobs:
9898
id: npm-publish
9999
run: |
100100
set -e
101-
npm publish
101+
if [[ "${{ inputs.prerelease }}" == "true" ]]; then
102+
npm publish --tag beta
103+
else
104+
npm publish
105+
fi
102106
working-directory: packages/react-radfish
103107
env:
104108
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)