Skip to content

ci(release): create the GitHub Release, so the Releases page is not stale - #47

Merged
vikasiwp merged 1 commit into
mainfrom
chore/release-github-release
Sep 10, 2026
Merged

vikasiwp merged 1 commit into
mainfrom
chore/release-github-release

Conversation

@vikasiwp

Copy link
Copy Markdown
Contributor

release.yml published 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 is always() && 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 view first, so the workflow_dispatch recovery path can be re-run against a tag that already has one.

Verified

What can be checked without cutting a release:

  • YAML parses; the step is last, after Verify the published version
  • the CHANGELOG extraction against the real file: 0.2.1 → 59 lines, 0.2.0 → 17, a version with no section → 0 lines and no stray --- separator
  • the idempotency branch against the live v0.2.1 Release → exits 0 without touching it

Needs 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)

…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-bot

kilo-code-bot Bot commented Sep 10, 2026

Copy link
Copy Markdown

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.

@vikasiwp
vikasiwp merged commit bd8073a into main Sep 10, 2026
2 of 3 checks passed
@vikasiwp
vikasiwp deleted the chore/release-github-release branch September 10, 2026 11:37
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