From bdd8d4e0c58dc40ecd2e68d56d4b1ac3b26b5d18 Mon Sep 17 00:00:00 2001 From: Jinwoo-H Date: Sun, 3 May 2026 22:36:24 -0400 Subject: [PATCH] ci(mobile): mark mobile releases as prerelease; guard release-cut against mobile tags - mobile-build.yml: pass --prerelease --latest=false when creating GitHub releases for mobile-v* tags so the mobile APK release never steals the "Latest" badge from desktop. - release-cut.yml: restrict the "latest stable" jq filter to tags matching ^v[0-9] so sibling release namespaces (mobile-v*) cannot poison next-version math. Co-authored-by: Orca --- .github/workflows/mobile-build.yml | 2 ++ .github/workflows/release-cut.yml | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/mobile-build.yml b/.github/workflows/mobile-build.yml index 600501f15..5b153024b 100644 --- a/.github/workflows/mobile-build.yml +++ b/.github/workflows/mobile-build.yml @@ -58,5 +58,7 @@ jobs: gh release create "$tag" \ --repo "$GITHUB_REPOSITORY" \ --title "Orca Mobile $tag" \ + --prerelease \ + --latest=false \ --generate-notes \ android/app/build/outputs/apk/release/*.apk diff --git a/.github/workflows/release-cut.yml b/.github/workflows/release-cut.yml index a477e80e8..1ff3bc358 100644 --- a/.github/workflows/release-cut.yml +++ b/.github/workflows/release-cut.yml @@ -191,12 +191,16 @@ jobs: # compute-next-version math here). Filtering by tag format is # the authoritative signal — an `-rc.N` tag is never stable, # regardless of what the release metadata says. + # + # Why: restrict to the desktop `v...` tag shape so sibling + # release namespaces in this monorepo (e.g. `mobile-v0.0.1`) cannot + # be picked up as the "latest stable" and poison version math. latest_stable="$(gh release list \ --repo "$GITHUB_REPOSITORY" \ --exclude-drafts \ --limit 50 \ --json tagName \ - --jq '[.[] | .tagName | select(test("-rc\\.") | not)] | .[0] // ""')" + --jq '[.[] | .tagName | select(test("^v[0-9]") and (test("-rc\\.") | not))] | .[0] // ""')" latest_stable="${latest_stable#v}" echo "Latest stable: ${latest_stable:-}"