Skip to content

Commit c852d4e

Browse files
authored
Latest matters more than Pre-release (#526)
1 parent 8542ef7 commit c852d4e

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/release_main.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)