We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8acd007 commit 0b691fbCopy full SHA for 0b691fb
.github/workflows/npm-release.yaml
@@ -244,4 +244,12 @@ jobs:
244
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
245
246
- name: Publish to npm with OIDC
247
- run: npm publish --provenance --access public
+ run: |
248
+ VERSION="${{ env.NEW_VERSION }}"
249
+ # Extract prerelease identifier if present (e.g., "beta" from "1.0.0-beta.1")
250
+ if [[ "$VERSION" == *"-"* ]]; then
251
+ TAG=$(echo "$VERSION" | sed 's/.*-\([a-zA-Z]*\).*/\1/')
252
+ npm publish --provenance --access public --tag "$TAG"
253
+ else
254
+ npm publish --provenance --access public
255
+ fi
0 commit comments