Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,19 @@ module.exports = {
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
// The first rule caps commits with a BREAKING CHANGE footer or `!:`
// marker at `minor`. Without it, semantic-release's built-in default
// rule `{ breaking: true, release: 'major' }` kicks in and auto-ships
// a major release the moment any commit body contains the words
// "BREAKING CHANGE". That's almost never what we want on 0.x — one
// stray commit would jump us straight to 1.0.0. Run semantic-release
// with an explicit `--release major` override for genuine major bumps.
//
// User rules are evaluated before the defaults; defaults only apply
// when no user rule matches. So capturing `breaking: true` here
// prevents the default major rule from being consulted at all.
"releaseRules": [
{ "breaking": true, "release": "minor" },
{ "type": "feat", "release": "minor" },
{ "type": "*", "release": "patch" },
],
Expand Down
Loading