Skip to content

Commit 58e709e

Browse files
committed
fix: detect any prerelease identifier instead of allowlist
Any version with a hyphenated pre-release suffix (e.g., preview, canary) is now correctly published with its dist-tag and marked as prerelease.
1 parent 5ce15d6 commit 58e709e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
id: dist-tag
4141
run: |
4242
TAG_VERSION="${GITHUB_REF_NAME#v}"
43-
if echo "$TAG_VERSION" | grep -qE '-(alpha|beta|rc|next|dev)'; then
43+
if echo "$TAG_VERSION" | grep -qE '-([a-zA-Z]+)'; then
4444
# Extract pre-release identifier (e.g., "beta" from "5.0.0-beta.0")
4545
PRE_TAG=$(echo "$TAG_VERSION" | sed -E 's/.*-([a-zA-Z]+).*/\1/')
4646
echo "tag=$PRE_TAG" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)