Skip to content

Mark prerelease versions as prereleases on GitHub - #16

Merged
ipjohnson merged 1 commit into
mainfrom
fix/mark-prerelease-github-releases
Aug 7, 2026
Merged

Mark prerelease versions as prereleases on GitHub#16
ipjohnson merged 1 commit into
mainfrom
fix/mark-prerelease-github-releases

Conversation

@ipjohnson

Copy link
Copy Markdown
Owner

gh release create does not infer prerelease status from the version, so tagging v1.0.0-rc9200 published a GitHub release marked stable. A release candidate appearing as "Latest" is misleading to anyone browsing the releases page.

The release step now derives the flag from the resolved version:

case "${{ steps.version.outputs.version }}" in
  *-*) prerelease="--prerelease" ;;
  *)   prerelease="" ;;
esac
Version Result
1.0.0-rc9200 --prerelease
2.1.0-beta.1 --prerelease
1.0.0 stable

The existing v1.0.0-rc9200 release has already been corrected in place, so this only affects future tags.

Found by checking the published release rather than assuming the workflow was right — the first real run of a pipeline that had never published anything.

🤖 Generated with Claude Code

https://claude.ai/code/session_012QPG3s4DPZZ6E4qJ6q8kSs

gh release create does not infer this from the version, so v1.0.0-rc9200 was
published as a stable release. A release candidate showing up as the latest
stable release is misleading to anyone browsing the releases page.

The existing v1.0.0-rc9200 release has been corrected in place.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012QPG3s4DPZZ6E4qJ6q8kSs
@ipjohnson
ipjohnson merged commit 64a081d into main Aug 7, 2026
2 checks passed
@ipjohnson
ipjohnson deleted the fix/mark-prerelease-github-releases branch August 7, 2026 17:05
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