File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,15 +104,16 @@ jobs:
104104 exit 0
105105 fi
106106
107- # Treat any version carrying a prerelease identifier (e.g. -alpha) as a pre-release.
108- PRERELEASE_FLAG=""
109- case "$NEXT" in
110- *-*) PRERELEASE_FLAG="--prerelease" ;;
111- esac
112-
107+ # Publish as the repo's "Latest" release rather than a GitHub
108+ # pre-release. While in early access every promotion is an -alpha, and
109+ # "Latest" is the signal consumers actually follow — so the newest
110+ # promotion must own it. The overall pre-release/early-access state is
111+ # carried by the separate `early-access` tag/release, not by flagging
112+ # each version as a GitHub pre-release. --latest is explicit so the new
113+ # release always takes the badge from the prior one.
113114 gh release create "$TAG" \
114115 --target "$GITHUB_SHA" \
115116 --title "$TAG" \
116117 --generate-notes \
117- $PRERELEASE_FLAG
118+ --latest
118119 echo "Published release $TAG"
You can’t perform that action at this time.
0 commit comments