Skip to content

Commit 9e658ad

Browse files
maqeel75claude
authored andcommitted
fix(release): mark pre-release tags as GitHub pre-releases
GoReleaser's default (prerelease: false) publishes rc/beta/alpha tags as full GitHub releases, so GitHub stamps them "Latest" and pins them above the GA release in the releases list. Set prerelease: auto so tags with a semver pre-release component are flagged as pre-releases, matching the rc*/beta*/alpha* suffix routing already in release.yaml. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 3653ae2 commit 9e658ad

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.goreleaser.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ changelog:
4545
- "^test:"
4646

4747
release:
48+
# Mark tags carrying a semver pre-release component (-rc.N, -beta, -alpha)
49+
# as GitHub pre-releases so they're excluded from the "Latest" badge and
50+
# sort below the newest GA release. Without this, GoReleaser's default
51+
# (prerelease: false) publishes rc/beta tags as full releases, which GitHub
52+
# then stamps "Latest" and pins to the top of the releases list.
53+
prerelease: auto
4854
footer: >-
4955
5056
---

0 commit comments

Comments
 (0)