Skip to content

Document the release procedure - #33

Merged
sabind merged 1 commit into
masterfrom
document-release-procedure
Oct 20, 2026
Merged

sabind merged 1 commit into
masterfrom
document-release-procedure

Conversation

@sabind

@sabind sabind commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Why

Releasing 4.0.0 showed that the docs said only "push a tag that matches package.json". The sequence around it, and the things that matter when it goes wrong, were not written down anywhere. The author asked to document how publishing versions works.

What

CONTRIBUTING.md now carries the release procedure maintainers follow, and the README's Release section points at it instead of repeating a partial version with a stale paragraph about a manual first publish.

Changes

  • CONTRIBUTING.md, Releases section rewritten as a procedure. Bump the version in the PR with npm version --no-git-tag-version, merge, wait for CI on master, tag the merge commit from origin/master, push the tag. States what the workflow then does, that a mismatched tag fails it, that a prerelease publishes as next and a plain version as latest, that the registry lags by a few minutes, and that a bad release is fixed by a patch version because a published version cannot be replaced. Docs only; the author asked for it after the 4.0.0 release.
  • README.md, Release section shortened to two sentences and the tag commands, linking the procedure, and dropping the "before the first automated release" paragraph, which no longer applies since Trusted Publishing has carried the last two releases.

Testing

Not tested beyond reading; documentation only. The commands in the procedure are the ones run for the 4.0.0 release on 2026-10-20.

Risk and rollout

None.

🤖 Generated with Claude Code

Spell out the steps from the version bump to the tag in CONTRIBUTING.md,
including the prerelease dist-tag, the registry lag and that a version
cannot be republished, and point the README's Release section at it,
dropping the stale manual-first-publish paragraph.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@sabind
sabind merged commit 653f77b into master Oct 20, 2026
4 checks passed
@sabind
sabind deleted the document-release-procedure branch October 20, 2026 17:44
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.

2 participants