Repository navigation
ci(release): switch release PRs to release-please - #867
Merged
Merged
Conversation
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.
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.
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
mainwith 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.main) opens or updates achore(release): vX.Y.ZPR with aCHANGELOG.mdentry. A follow-up job checks out that PR's branch, runsmake fix-modules MODULE_VERSION=vX.Y.Z, and pushes the synced nested-module requirements and npm version, the same thing Prepare Release did.release-please--branches--main*branch with theautorelease: pendinglabel) and reads the version from.release-please-manifest.jsonat the merge commit. It then runs the existing verify, build, test, coordinated-tag, goreleaser and pkg.go.dev steps.autorelease: tagged. Becauseskip-github-releaseis 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-majorplusbump-patch-for-minor-pre-majorkeep the v0.0.x series.featandfixbump the patch, and breaking changes bump the minor.docs,test,refactor,ci,buildandchoredon't trigger a release on their own.Other changes
.github/workflows/prepare-release.ymlis removed.make releasenow dispatchesrelease-please.ymlto refresh the release PR by hand.runtime: subjecttofix(runtime): subjectand explains which types release. CONTRIBUTING.md, the website contributing guide and contrib/README.md describe the new flow.0.0.39.Validation
actionlintreports no issues on the new workflows. Its one warning onrelease.yml(SC2129) is in an existing step and also shows up on main.v0.0.39tag at the release: v0.0.39 #865 merge commit and treated it as the last release. It saw one commit since then (this PR'sci(release)commit), logged "No user facing commits", and correctly skipped opening a release PR.Before merging
RELEASE_TOKENneedscontents: writeandpull-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.mainruleset. Without that, non-conventional titles can still merge and get silently left out of the changelog and version bump.Update pnpm to v11.11.0 [SECURITY]), so they would fail the new title check. The newerchore(deps): ...titles pass but won't trigger a release. If security bumps should cut releases, configure Renovate to usefix(deps)for them.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.