Repository navigation
ci(release): create the GitHub Release, so the Releases page is not stale - #47
Merged
Merged
Conversation
…tale The workflow published to npm and stopped there, so the repository's Releases page still advertised v0.2.0 after v0.2.1 shipped. On a security release that is the worst possible read: the tag exists, npm serves the fix, and anyone looking at the repo — the reporter checking whether we shipped, most of all — sees a stale version and concludes we did not. Runs last, so it cannot affect the publish. Two things it is careful about: - Gated on the PUBLISH step's outcome, not on the job. `always()` alone would announce "Published to npm" after a publish that FAILED, and a release note is exactly the kind of plausible artefact nobody re-checks. The condition fires when the publish succeeded and something after it did not — which is the case that motivated this: the registry-propagation check times out on a perfectly good publish, which is what happened to v0.2.1. - Idempotent, so the workflow_dispatch recovery path can be re-run against a tag that already has a Release. Notes are the matching CHANGELOG section when there is one, and just the npm line when there is not — verified against the real CHANGELOG for 0.2.1 (59 lines), 0.2.0 (17) and a version with no section (0, and no stray separator). Needs contents: write, which the job did not have. v0.2.1's Release was created by hand; this stops it recurring. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
Kilo Code Review could not run — your account is out of credits. Add credits or switch to a free model to enable reviews on this change. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
release.ymlpublished to npm and stopped, so the Releases page still advertised v0.2.0 after v0.2.1 shipped. The tag existed and npm served the fix — but on a security release, someone reading the repo (the reporter, checking whether we shipped) sees a stale version and reasonably concludes we did not.Adds a final step that creates the Release from the tag.
Two things it is careful about
Gated on the publish step, not the job.
always()alone would announce "Published to npm" after a publish that failed — a release note is exactly the kind of plausible artefact nobody re-checks. The condition isalways() && steps.publish.outcome == 'success', so it fires when the publish succeeded and something after it did not. That is the case that motivated this: the registry-propagation check timed out on v0.2.1's perfectly good publish, leaving a red run and no Release.Idempotent —
gh release viewfirst, so theworkflow_dispatchrecovery path can be re-run against a tag that already has one.Verified
What can be checked without cutting a release:
Verify the published version---separatorNeeds
contents: write, which the job did not have.v0.2.1's Release was created by hand; this stops it recurring.
Agentric session: https://aos.agents.instawp.net/#/sessions/aos-ses_66fc1bb1be3c159a
— Engineer (agent-os)