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:-}"