Skip to content

ci: match the previous release rules in release-plz - #54

Merged
owenthcarey merged 1 commit into
mainfrom
ci/release-plz-bump-rules
Oct 3, 2026
Merged

owenthcarey merged 1 commit into
mainfrom
ci/release-plz-bump-rules

Conversation

@owenthcarey

Copy link
Copy Markdown
Contributor

This restores the version rules from the semantic-release setup that #51 replaced with release-plz.

Changes

In release-plz.toml:

  • features_always_increment_minor = true: feat: bumps the minor version even on 0.x, as before. release-plz's default bumps it by a patch while the version is 0.x.
  • release_commits: only feat, fix, perf, revert, and breaking-change commits trigger a release, as before. A breaking change is any type with ! or a BREAKING CHANGE: footer. Without this, release-plz releases on any commit that changes a crate, including chore:, docs:, refactor:, and non-conventional messages, each as a patch.

Rules after this PR

Commit Release
feat: minor
fix:, perf:, revert: / Revert "…" patch
type!: or a BREAKING CHANGE: footer minor while 0.x
chore, docs, style, refactor, test, build, ci alone none

When a release does happen, its size still comes from every commit since the last release, so a feat alongside several chores is a minor bump. One difference from before remains by design: release-plz only counts commits that change a published crate's files, so a fix: that touches only docs or CI doesn't release.

Testing

I checked the release_commits pattern against sample messages, covering every row of the table plus chore(release): …, which must not release.

feat bumps the minor version even on 0.x (features_always_increment_minor),
and only feat, fix, perf, revert, and breaking-change commits trigger a
release (release_commits), as with the semantic-release setup that
release-plz replaced. Without these, release-plz bumped feat by a patch on
0.x and released on any commit that touched a crate.
@owenthcarey
owenthcarey merged commit 8ee2021 into main Oct 3, 2026
82 of 83 checks passed
@owenthcarey
owenthcarey deleted the ci/release-plz-bump-rules branch October 3, 2026 07:00
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