Skip to content

Commit 023f661

Browse files
authored
Mark prerelease versions as prerelease in GitHub Releases (#104)
1 parent f6ba04d commit 023f661

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/bun-compile.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,13 @@ jobs:
147147
echo "::error::No version provided. Cannot create release."
148148
exit 1
149149
fi
150+
PRERELEASE_FLAG=""
151+
if [[ "$VERSION" == *prerelease* ]]; then
152+
PRERELEASE_FLAG="--prerelease"
153+
fi
150154
gh release create "v${VERSION}" \
151155
--title "v${VERSION}" \
152156
--generate-notes \
157+
$PRERELEASE_FLAG \
153158
artifacts/*
154159

0 commit comments

Comments
 (0)