Skip to content

fix(release): mark suffixed tags as prereleases on GitHub - #76

Merged
davekiss merged 1 commit into
mainfrom
fix/release-prerelease-flag
Sep 18, 2026
Merged

davekiss merged 1 commit into
mainfrom
fix/release-prerelease-flag

Conversation

@davekiss

@davekiss davekiss commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Summary

The Create GitHub Release step never set prerelease, so tags such as v2.0.0-rc.2 were published as regular releases and promoted to "Latest". install.sh and the README releases/latest/download/... links both resolve through the latest release, so an rc tag would be served to every installer using those paths.

This sets prerelease whenever the tag contains a -, matching the condition the Homebrew job already uses to skip prerelease tags. npm publishing is unaffected; scripts/publish.sh already derives the dist-tag from the version suffix.

Why now

Needs to be on main before tagging v3.0.0-rc.1 for #74, since the release workflow runs from the tagged commit.

Test plan

  • Tag an rc after merge and confirm the GitHub Release is flagged as a pre-release and releases/latest still resolves to v2.1.0

🤖 Generated with Claude Code


Note

Low Risk
CI-only change to GitHub release metadata; no runtime or npm publish behavior changes.

Overview
Sets the GitHub Release Create Release step to mark releases as pre-releases when the tag name contains a - (e.g. v3.0.0-rc.1), via prerelease: ${{ contains(github.ref_name, '-') }}.

That keeps suffixed tags from becoming GitHub’s Latest release, so install.sh and README releases/latest/download/... links keep pointing at stable builds instead of RCs. The condition matches the existing Homebrew job guard that skips hyphenated tags.

Reviewed by Cursor Bugbot for commit 8d950fe. Bugbot is set up for automated code reviews on this repo. Configure here.

Release candidates were published as regular releases, so GitHub promoted
them to "Latest". install.sh and the README download links resolve through
releases/latest, which meant an rc tag would be served to every installer.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@davekiss
davekiss merged commit 0094c1f into main Sep 18, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant