From 750372f38e8fe7eef9e86186052f6843cb5f183d Mon Sep 17 00:00:00 2001 From: Kaiyue Jiang Date: Wed, 11 Mar 2026 16:36:37 -0700 Subject: [PATCH 1/2] Mark prerelease versions as prerelease in GitHub Releases Detects if the version string contains 'prerelease' and adds the --prerelease flag to gh release create accordingly. --- .github/workflows/bun-compile.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bun-compile.yml b/.github/workflows/bun-compile.yml index d7e8054..fddc3a6 100644 --- a/.github/workflows/bun-compile.yml +++ b/.github/workflows/bun-compile.yml @@ -131,8 +131,16 @@ jobs: echo "::error::No version provided. Cannot create release." exit 1 fi - gh release create "v${VERSION}" \ - --title "v${VERSION}" \ - --generate-notes \ - artifacts/* + if [[ "$VERSION" == *prerelease* ]]; then + gh release create "v${VERSION}" \ + --title "v${VERSION}" \ + --generate-notes \ + --prerelease \ + artifacts/* + else + gh release create "v${VERSION}" \ + --title "v${VERSION}" \ + --generate-notes \ + artifacts/* + fi From 6b8d5c357b1095e2f9e99cf9e94d3bb67c73bfd0 Mon Sep 17 00:00:00 2001 From: Kaiyue Jiang Date: Wed, 11 Mar 2026 16:42:31 -0700 Subject: [PATCH 2/2] fix: add --prerelease flag for prerelease versions in bun-compile workflow Agent-Id: agent-4b7b87c8-7e28-4dd8-9fc8-cd59b6fb4947 --- .github/workflows/bun-compile.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/bun-compile.yml b/.github/workflows/bun-compile.yml index fddc3a6..4bbd1c6 100644 --- a/.github/workflows/bun-compile.yml +++ b/.github/workflows/bun-compile.yml @@ -131,16 +131,13 @@ jobs: echo "::error::No version provided. Cannot create release." exit 1 fi + PRERELEASE_FLAG="" if [[ "$VERSION" == *prerelease* ]]; then - gh release create "v${VERSION}" \ - --title "v${VERSION}" \ - --generate-notes \ - --prerelease \ - artifacts/* - else - gh release create "v${VERSION}" \ - --title "v${VERSION}" \ - --generate-notes \ - artifacts/* + PRERELEASE_FLAG="--prerelease" fi + gh release create "v${VERSION}" \ + --title "v${VERSION}" \ + --generate-notes \ + $PRERELEASE_FLAG \ + artifacts/*