Skip to content

ci: Cut releases with release-please and lint PR titles - #6734

Open
mangas wants to merge 5 commits into
masterfrom
mangas/release-please
Open

mangas wants to merge 5 commits into
masterfrom
mangas/release-please

Conversation

@mangas

@mangas mangas commented Oct 12, 2026

Copy link
Copy Markdown
Collaborator

Adds release-please to cut releases from Conventional Commits, and a check that PR titles follow that format.

  • .github/workflows/release.yml: on every push to master, release-please opens or updates a release PR. Merging that PR bumps the version in Cargo.toml and Cargo.lock, updates CHANGELOG.md, tags vX.Y.Z and creates the GitHub release.
    • It runs as a GitHub App, using secrets RELEASE_APP_CLIENT_ID and RELEASE_APP_PRIVATE_KEY, because PRs opened with GITHUB_TOKEN don't trigger CI.
  • release-please-config.json and .release-please-manifest.json start from the v0.45.0 release commit (8e3debd67, v0.45.0 release #6703) at version 0.45.0.
    • bump-minor-pre-major is set, so below 1.0 feat and breaking changes bump the minor version, and fix and perf bump the patch.
  • .github/workflows/semantic-pr.yml checks PR titles against the Conventional Commits types.
  • CONTRIBUTING.md and CLAUDE.md move the commit format from crate: desc to type(crate): desc.

Decisions for maintainers before this leaves draft:

  1. Merge method. release-please reads every commit on master. With rebase-merge, every commit in a PR must be conventional. With squash-merge, only the PR title must be, and that's what the title check enforces.
  2. Changelog file. The changelog goes to a new CHANGELOG.md; NEWS.md stays hand-written. The alternative is to point changelog-path at NEWS.md.
  3. Release binaries. Attaching binaries to the release is not part of this PR.
  4. GitHub App. The App and its two secrets need creating.

The App is shared by the organisation's release-please repositories: its
client ID is an org variable and its key an org secret, both granted to
selected repositories. The token is limited to this repository and to
contents, pull requests and issues.

Say why it is an App: a release created with GITHUB_TOKEN triggers no
workflows, so gnd-binary-build.yml (on: release: published) would not run.
The check only reads the title, which a fork's read-only token allows, so
it needs no pull_request_target job. The repository is admitted to forge's
public runners on the condition that it has none.

Group runs by PR number: two forks' branches can share a name.
Pull requests are squash-merged and their title is the conventional
commit release-please reads; this replaces the local rebase-and-push
merge. Releases: merge a NEWS.md pull request with the version's notes,
then the release pull request. Release-As overrides the proposed version.
@mangas

mangas commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator Author

Not needed anymore; closing.

@mangas mangas closed this Nov 27, 2026
@cjorge-thegraph

Copy link
Copy Markdown

Reopening to land this, with follow-up commits on top. Image publishing is still broken: since 2026-10-12, Cloud Build's push to Docker Hub has been denied, so the newest graphprotocol/graph-node images are from 2026-08-25. These workflows replace it.

The follow-ups:

  • the release token comes from the organisation's release App, limited to this repository;
  • the PR-title check runs on pull_request, not pull_request_target;
  • Docker Hub push is mandatory (organization token DOCKERHUB_CI_TOKEN);
  • canary-* tags and hotfix/** branches build images again;
  • build provenance for images and binaries;
  • a check that release binaries link libpq statically, and an aarch64 smoke run under qemu;
  • a release commit is built once, as the release.

Rehearsed end to end in a fork: release PR, tag and release, binaries, images and attestations. No release is planned: release-please's release PR stays open until someone decides to cut one.

@cjorge-thegraph
cjorge-thegraph marked this pull request as ready for review November 27, 2026 20:48

This branch has not been deployed

No deployments
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