Skip to content

Commit f1cc830

Browse files
committed
Modify release script to only do minor release for breaking changes
Signed-off-by: Felix Wang <[email protected]>
1 parent e7dd4b7 commit f1cc830

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎.releaserc.js‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@ module.exports = {
2323
branches: possible_branches,
2424
plugins: [
2525
// Try to guess the type of release we should be doing (minor, patch)
26-
"@semantic-release/commit-analyzer",
26+
["@semantic-release/commit-analyzer", {
27+
// Ensure that breaking changes trigger minor instead of major releases
28+
"releaseRules": [
29+
{breaking: true, release: 'minor'},
30+
{tag: 'Breaking', release: 'minor'},
31+
]
32+
}]
2733

2834
["@semantic-release/exec", {
2935
// Validate the type of release we are doing

0 commit comments

Comments
 (0)