Skip to content

ci(release): switch release PRs to release-please - #867

Merged
ewhauser merged 1 commit into
mainfrom
chore/release-please
Oct 19, 2026
Merged

ewhauser merged 1 commit into
mainfrom
chore/release-please

Conversation

@ewhauser

Copy link
Copy Markdown
Owner

Summary

Release PRs were opened by dispatching Prepare Release by hand. With this change, release-please keeps a release PR open automatically, based on Conventional Commit history.

How a release works now

  1. PRs land on main with Conventional Commit titles (fix(runtime): ..., feat(fs): ...). A new PR Title check enforces this. PRs are squash-merged, so the title becomes the commit release-please reads.
  2. Release Please (on every push to main) opens or updates a chore(release): vX.Y.Z PR with a CHANGELOG.md entry. A follow-up job checks out that PR's branch, runs make fix-modules MODULE_VERSION=vX.Y.Z, and pushes the synced nested-module requirements and npm version, the same thing Prepare Release did.
  3. Merging the release PR triggers Publish Release as before. It now recognizes the merged release-please PR (same-repo release-please--branches--main* branch with the autorelease: pending label) and reads the version from .release-please-manifest.json at the merge commit. It then runs the existing verify, build, test, coordinated-tag, goreleaser and pkg.go.dev steps.
  4. After pushing the tags, Publish Release swaps the PR label to autorelease: tagged. Because skip-github-release is set, goreleaser still owns the GitHub release and the root/contrib tags, so release-please waits for that label before opening the next release PR.

Versioning: bump-minor-pre-major plus bump-patch-for-minor-pre-major keep the v0.0.x series. feat and fix bump the patch, and breaking changes bump the minor. docs, test, refactor, ci, build and chore don't trigger a release on their own.

Other changes

  • .github/workflows/prepare-release.yml is removed. make release now dispatches release-please.yml to refresh the release PR by hand.
  • AGENTS.md (CLAUDE.md) switches the commit convention from runtime: subject to fix(runtime): subject and explains which types release. CONTRIBUTING.md, the website contributing guide and contrib/README.md describe the new flow.
  • The manifest starts at 0.0.39.

Validation

  • actionlint reports no issues on the new workflows. Its one warning on release.yml (SC2129) is in an existing step and also shows up on main.
  • I ran a release-please 17.6.0 dry run against this branch. It found the v0.0.39 tag at the release: v0.0.39 #865 merge commit and treated it as the last release. It saw one commit since then (this PR's ci(release) commit), logged "No user facing commits", and correctly skipped opening a release PR.

Before merging

  • RELEASE_TOKEN needs contents: write and pull-requests: write. release-please uses it so the release PR runs the normal checks without the workflow-approval gate that release: v0.0.39 #865 hit, and the sync job uses it to push. If it's a fine-grained PAT without pull-request access, the Release Please job will fail.
  • Make "PR Title / conventional-title" a required check in the main ruleset. Without that, non-conventional titles can still merge and get silently left out of the changelog and version bump.
  • Renovate: older Renovate PRs had non-conventional titles (e.g. Update pnpm to v11.11.0 [SECURITY]), so they would fail the new title check. The newer chore(deps): ... titles pass but won't trigger a release. If security bumps should cut releases, configure Renovate to use fix(deps) for them.
  • This touches release.yml, as does ci(release): restore next-env.d.ts after the website build #866 (the v0.0.39 publish fix). They change different parts of the file, but ci(release): restore next-env.d.ts after the website build #866 should merge first so v0.0.39 can be republished.

Release PRs were opened by dispatching the Prepare Release workflow by
hand. release-please now keeps a release PR open from Conventional
Commit history, and a follow-up job syncs nested module versions on it
with make fix-modules. Publish Release recognizes the merged
release-please PR, reads the version from the manifest, and swaps its
label to autorelease: tagged once the tags are pushed. GitHub releases
and tags are still created by Publish Release (skip-github-release).

A PR Title workflow enforces Conventional Commit titles, since squash
merges make the title the commit release-please reads. AGENTS.md and the
release docs describe the new convention and flow.
@ewhauser
ewhauser merged commit 53cea6c into main Oct 19, 2026
16 checks passed
@ewhauser
ewhauser deleted the chore/release-please branch October 19, 2026 16:55
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