Repository navigation
ci: release with release-please - #232
Merged
Merged
Conversation
A release was a hand-moved [Unreleased] section and a signed v* tag pushed by hand. Following dockmaster and k4a, release-please now keeps a standing release PR with the next version and its CHANGELOG.md section, and merging that PR is the release: release-please tags it and calls release.yml with the tag, which publishes and then moves the v4 alias as before. A tag pushed by hand releases nothing, which also retires the full-versions-only tag pattern that kept the alias from starting a second release. The PR title becomes the changelog entry, so pr-title.yml fails a title that is not a Conventional Commit, and on the release PR re-checks every commit release-please would carry. Versions track upstream parity, which release-please cannot know: it proposes a bump by commit type, so a feat: would propose 4.8.0 while the release is still 4.7 parity. That proposal is right for the usual fix: release; when it is not, Release-As sets the version. CONTRIBUTING.md and AGENTS.md say so. CHANGELOG.md loses its empty [Unreleased] heading: release-please inserts each new section above the first version heading, so it would otherwise sit stranded below the newest release.
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.
Same setup as blairham/dockmaster#132 and blairham/k4a#142: release-please replaces the hand-cut release (move
[Unreleased], push av*tag)..github/workflows/release-please.yml(copied from dockmaster, same pinned SHAs): on push tomain, updates one standing release PR; when it merges, release-please tagsvX.Y.Z, creates the GitHub release and callsrelease.ymlwith the tag..github/workflows/release.yml:workflow_call(withtag) +workflow_dispatch(redo / dry run); no tag trigger, so a hand-pushed tag releases nothing. Adds dockmaster'sVersion is release-please'sjob (the tag must equal the manifest at that tag). Thego-release.ymlcall, its pin,goreleaser-ref,test-command, secrets and defaultrelease-notes: changelogare unchanged: go-release reads the## [X.Y.Z]section release-please writes..github/workflows/pr-title.yml: the PR title check (k4a's copy, which points at CONTRIBUTING.md): Conventional Commit titles; on the release PR it re-checks every commit since setup/the last tag. Dependabot exempt.release-please-config.json/.release-please-manifest.json: dockmaster's changelog sections (feat Added, fix Fixed, perf, revert; docs/ci/build/refactor/test/chore/style hidden).v4.7.2). Nobump-minor-pre-major(v4).aliasjob that movesv4is unchanged and still runs after the release; with no tag trigger left, the full-versions-only tag pattern that kept the alias from starting a second release is gone with it. README's Releasing section updated.CHANGELOG.md: the empty[Unreleased]heading and its link reference removed; release-please inserts new sections above the first version heading.Versioning tension, for the maintainer. AGENTS.md: "Versioning tracks upstream parity, not semver of this codebase" (
v4.7.x= Python pre-commit 4.7 parity). release-please bumps by commit type:fix:/perf:→ 4.7.3,feat:→ 4.8.0,feat!:→ 5.0.0, and a release of only hidden types (build:,ci:, …) opens no release PR. That proposal is right for the usual release (fixes inside the 4.7 line); when it is not — afeat:that is still 4.7 parity, or deliberately moving to 4.8 parity — aRelease-As: X.Y.Zfooter in a PR merged before the release sets the version. Nothing cleverer is configured; CONTRIBUTING.md and AGENTS.md say this.Before merging: the release GitHub App must be installed on this repo (
RELEASE_APP_CLIENT_ID/RELEASE_APP_PRIVATE_KEYare already set); without it the release-please workflow fails on every push tomain.After merging: add
PR titleto the main ruleset's required checks, and set the squash-merge commit to the PR title and PR body (dockmaster and k4a usePR_TITLE/PR_BODY; this repo isCOMMIT_OR_PR_TITLE/COMMIT_MESSAGES), so a one-commit PR cannot slip its own subject in and aRelease-As:in a PR body reaches the commit.Checked: actionlint clean on the three workflows (and it fires on a deliberately broken
needs:); both JSON files parse.