Skip to content

chore: mark prerelease tags automatically in GoReleaser - #83

Open
yvonnedevlinrh wants to merge 1 commit into
unbound-force:mainfrom
yvonnedevlinrh:chore/goreleaser-prerelease-auto
Open

chore: mark prerelease tags automatically in GoReleaser#83
yvonnedevlinrh wants to merge 1 commit into
unbound-force:mainfrom
yvonnedevlinrh:chore/goreleaser-prerelease-auto

Conversation

@yvonnedevlinrh

Copy link
Copy Markdown
Contributor

Summary

Add prerelease: auto to .goreleaser.yaml so GoReleaser automatically detects semver prerelease suffixes (-rc.N, -alpha.N, -beta.N) and sets the GitHub release prerelease flag accordingly.

Problem

Prerelease tags (e.g., v1.0.0-rc.1) would be published as full releases. This means brew upgrade would install them as the latest stable version, and the GitHub releases page shows them alongside stable releases without distinction.

Change

One-line addition to the existing release: block in .goreleaser.yaml. Stable tags (e.g., v1.0.0) continue to be marked as full releases.

Add prerelease: auto to release config so GoReleaser detects
semver prerelease suffixes (-rc, -alpha, -beta) and sets the
GitHub release prerelease flag accordingly.
@yvonnedevlinrh
yvonnedevlinrh requested a review from a team as a code owner August 21, 2026 10:07
@yvonnedevlinrh yvonnedevlinrh self-assigned this Aug 21, 2026
@yvonnedevlinrh yvonnedevlinrh added the github_actions Pull requests that update GitHub Actions code label Aug 21, 2026
@yvonnedevlinrh yvonnedevlinrh moved this to Ready for Review 👀 in Unbound Force Planning Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code

Projects

Status: Ready for Review 👀

Development

Successfully merging this pull request may close these issues.

2 participants