Skip to content

Commit 9bb888c

Browse files
author
strausr
committed
fix: use --tag beta when publishing prerelease to npm
npm requires --tag for prerelease versions (1.0.0-beta.x).
1 parent f78f62d commit 9bb888c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ jobs:
171171
echo "Publishing to npm..."
172172
173173
# Publish using npm publish which supports OIDC/trusted publishing
174-
npm publish --provenance --access public
174+
# --tag beta required for prerelease versions (1.0.0-beta.x)
175+
npm publish --provenance --access public --tag beta
175176
echo "✓ Published $VERSION_AFTER to npm"
176177
else
177178
echo "No version change detected (version: $VERSION_AFTER)"

0 commit comments

Comments
 (0)