Skip to content

ci(release): keep breaking changes on a minor bump while below 1.0 - #764

Merged
LeMyst merged 1 commit into
cooklang:mainfrom
LeMyst:ci/release-please-pre-major
Oct 22, 2026
Merged

LeMyst merged 1 commit into
cooklang:mainfrom
LeMyst:ci/release-please-pre-major

Conversation

@LeMyst

@LeMyst LeMyst commented Oct 17, 2026 •

Copy link
Copy Markdown
Collaborator

release-please runs in single-package mode (release-type: rust on the action), which has no way to set bump-minor-pre-major. A breaking change (feat!: or a BREAKING CHANGE: footer) would therefore take 0.x straight to 1.0.0. This came up on #650, which dubadub asked to mark as breaking.

Changes

  • .github/release-please-config.json (new): package . with release-type: rust and bump-minor-pre-major: true, so a breaking change bumps 0.38 → 0.39 like a feature does.
    • include-component-in-tag: false keeps the tags as v0.39.0 and the release PR title as "chore(main): release 0.39.0".
    • The release branch is already release-please--branches--main--components--cookcli, so the open release PR chore(main): release 0.39.0 #660 is reused, not duplicated.
  • .github/.release-please-manifest.json (new): starts at the last release, 0.38.1. release-please updates it in each release PR.
  • Both files live in .github/ rather than at release-please's default location, the repository root, so the top level of the repo gains no files. bump-minor-pre-major can't be set through the action's inputs, so a config file is needed somewhere.
  • release.yaml:
    • config-file and manifest-file point the action at the two files.
    • release-type: rust is removed. With that input set, the action builds its config from the inputs and ignores the config file (loadOrBuildManifest in release-please-action v5).
    • draft: true is removed. It isn't an input of release-please-action since v4, so it has had no effect. Releases are published as soon as release-please creates them: v0.38.1 was published 16 s after its commit, before any binary was attached. Behaviour stays as it is today. Turning drafts on for real is a separate change, because GitHub creates a draft release's tag only on publish and the build jobs check out that tag.

Checks

  • actionlint 1.7.12 and zizmor 1.30.1 (--min-severity=low) are clean locally.
  • What this can't show before merging is release-please's actual run. After merging, chore(main): release 0.39.0 #660 should keep its title and branch and gain a .github/.release-please-manifest.json bump to 0.39.0.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GYHHHngC4XZ4nfdgP4p3Pe

release-please ran in single-package mode (`release-type: rust` on the
action), which has no way to set bump-minor-pre-major. A breaking change
(`feat!:` or a `BREAKING CHANGE:` footer) would therefore take 0.x
straight to 1.0.0.

Move the settings to .github/release-please-config.json with
bump-minor-pre-major, so a breaking change bumps 0.38 to 0.39 like a
feature does. include-component-in-tag is false to keep the `v0.39.0`
tags and the "chore(main): release 0.39.0" title; the release branch is
already release-please--branches--main--components--cookcli, so the
open release PR is reused. The manifest,
.github/.release-please-manifest.json, starts at the last release,
0.38.1. Both files sit in .github/ rather than release-please's default
of the repository root, so the top level gains no files; the
config-file and manifest-file inputs point the action at them.

With a `release-type` input the action ignores the config file, so that
input goes. `draft: true` goes too: release-please-action v4 dropped
the input, and it has been ignored since.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GYHHHngC4XZ4nfdgP4p3Pe
@LeMyst
LeMyst force-pushed the ci/release-please-pre-major branch from e117a7b to 6448788 Compare October 20, 2026 19:54
@LeMyst
LeMyst marked this pull request as ready for review October 20, 2026 19:55
@LeMyst
LeMyst requested a review from dubadub October 20, 2026 19:55
@LeMyst
LeMyst merged commit ff95dc6 into cooklang:main Oct 22, 2026
9 checks passed
@LeMyst
LeMyst deleted the ci/release-please-pre-major branch October 22, 2026 17:07
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