Skip to content

Commit 6b8d5c3

Browse files
committed
fix: add --prerelease flag for prerelease versions in bun-compile workflow
Agent-Id: agent-4b7b87c8-7e28-4dd8-9fc8-cd59b6fb4947
1 parent 750372f commit 6b8d5c3

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

.github/workflows/bun-compile.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -131,16 +131,13 @@ jobs:
131131
echo "::error::No version provided. Cannot create release."
132132
exit 1
133133
fi
134+
PRERELEASE_FLAG=""
134135
if [[ "$VERSION" == *prerelease* ]]; then
135-
gh release create "v${VERSION}" \
136-
--title "v${VERSION}" \
137-
--generate-notes \
138-
--prerelease \
139-
artifacts/*
140-
else
141-
gh release create "v${VERSION}" \
142-
--title "v${VERSION}" \
143-
--generate-notes \
144-
artifacts/*
136+
PRERELEASE_FLAG="--prerelease"
145137
fi
138+
gh release create "v${VERSION}" \
139+
--title "v${VERSION}" \
140+
--generate-notes \
141+
$PRERELEASE_FLAG \
142+
artifacts/*
146143

0 commit comments

Comments
 (0)