Skip to content

ci: release with release-please - #232

Merged
blairham merged 1 commit into
mainfrom
release-please
Nov 24, 2026
Merged

blairham merged 1 commit into
mainfrom
release-please

Conversation

@blairham

Copy link
Copy Markdown
Owner

Same setup as blairham/dockmaster#132 and blairham/k4a#142: release-please replaces the hand-cut release (move [Unreleased], push a v* tag).

  • .github/workflows/release-please.yml (copied from dockmaster, same pinned SHAs): on push to main, updates one standing release PR; when it merges, release-please tags vX.Y.Z, creates the GitHub release and calls release.yml with the tag.
  • .github/workflows/release.yml: workflow_call (with tag) + workflow_dispatch (redo / dry run); no tag trigger, so a hand-pushed tag releases nothing. Adds dockmaster's Version is release-please's job (the tag must equal the manifest at that tag). The go-release.yml call, its pin, goreleaser-ref, test-command, secrets and default release-notes: changelog are 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).
  • AGENTS.md, CONTRIBUTING.md and the PR template: merging release-please's PR is the release; never tag by hand; PR titles are Conventional Commits.
  • Manifest: 4.7.2 (latest tag v4.7.2). No bump-minor-pre-major (v4).
  • The alias job that moves v4 is 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 — a feat: that is still 4.7 parity, or deliberately moving to 4.8 parity — a Release-As: X.Y.Z footer 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_KEY are already set); without it the release-please workflow fails on every push to main.

After merging: add PR title to the main ruleset's required checks, and set the squash-merge commit to the PR title and PR body (dockmaster and k4a use PR_TITLE / PR_BODY; this repo is COMMIT_OR_PR_TITLE / COMMIT_MESSAGES), so a one-commit PR cannot slip its own subject in and a Release-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.

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.
@blairham
blairham merged commit 5e3390e into main Nov 24, 2026
14 checks passed
@blairham
blairham deleted the release-please branch November 24, 2026 22:48
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