Repository navigation
fix: publish 0.x releases as prereleases - #315
Conversation
The release workflow marked only alpha, beta and rc tags as prereleases, so 0.x releases came out as normal releases and became the latest release (v0.3.0 was flagged by hand afterwards). The new output mark_prerelease is true for pre-release tags and for every v0.* tag; the GitHub release follows it, and a release marked as a prerelease is never made the latest. The output prerelease keeps meaning a SemVer pre-release, which picks the previous release for the generated notes as before. Closes #313 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Explain both flags in one place, rewrap the header, drop the redundant PRERELEASE check from the latest condition (mark_prerelease covers it) and split the paragraph in docs/development.md (review findings). Co-Authored-By: Claude Opus 5.5 <[email protected]>
A release that is already published (e.g., by hand) is left as it is; the step now warns if its prerelease flag differs from the expected one, so that a maintainer can fix it (review finding). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuideConfigurationSeparate SemVer prerelease detection from GitHub release classification so all
DocumentationDocument that prerelease tags and all releases before 1.0 are published as prereleases and cannot become the latest release.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
The 0.4.0 notes gain the service info's backend parameters (#289, #314) and the prerelease flag of releases before 1.0 (#313, #315), both planned for 0.4.0. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #315 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 2
Lines 422 422
=========================================
Hits 422 422 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Linked issuesChecked at commit 5eedf2b #313 fix: publish 0.x releases as prereleases · 3 of 4 met · 1 to check by hand
|
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Sourcery assessment
Needs a human reviewer. A 0.x release will be published with GitHub's prerelease flag and won't be marked latest, which can affect how users and release tooling discover it. If that policy is wrong, the published release's flags can be corrected manually; reverting the workflow alone would not change releases already published.
Summary
Publishes every
v0.*release as a prerelease, never as the latest release, as releases stay prereleases until 1.0 (v0.3.0 had to be flagged by hand after publishing)..github/workflows/release.yml:preparegets a new outputmark_prerelease: true for alpha, beta and rc tags and for everyv0.*tag.gh release createandedit) follows it.latestis false whenever it is true.prereleaseoutput keeps meaning a SemVer pre-release tag, which only chooses the previous release for the generated notes, as before.docs/development.md("Releases") says so.Closes #313
Verification
actionlint(1.7.12, with shellcheck 0.11.0) onrelease.yml: passed.CITATION.cffand notes at 0.0.2;v0.0.1is an old tag upstream). Fork CI passed for its push to the fork'sdev, then the fork'smainwas moved to it and a signed annotatedv0.0.2was pushed to the fork only.tesk-0.0.2.tgzand its Sigstore bundle, and it isn't the latest release (the fork'sreleases/latestanswers 404).MARK_PRERELEASE: true,LATEST: false; everyGH_REPOandREPOSITORYisuniqueg/TESK, so nothing targetedelixir-cloud-aai.dev(feat: list no backend parameters in service info #314).Lane
Full lane (release workflow):
adversarial-reviewerandquality-reviewer. No high findings. The quality reviewer's two medium findings were about comments and docs; both are fixed.adversarial-revieweron the fixes, which changed logic slightly (redundant check dropped, new warning). No findings.Declined review findings
Open questions
None.
The "Latest" badge stays on
tesk-0.1.1(a release from before the chart) until 1.0, since no 0.x release can become latest. Markingtesk-0.1.0,tesk-0.1.1andv0.2as prereleases by hand would remove that stale badge. That is a maintainer decision outside this PR.🤖 Generated with Claude Code
Summary by Sourcery
Ensure pre-1.0 and SemVer prerelease releases are published as prereleases and excluded from the latest release.
Bug Fixes:
Enhancements:
Documentation: