Skip to content

Commit

Permalink
Modify release script to only do minor release for breaking changes
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Wang <[email protected]>
  • Loading branch information
felixwang9817 committed Mar 21, 2022
1 parent e7dd4b7 commit f1cc830
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .releaserc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ module.exports = {
branches: possible_branches,
plugins: [
// Try to guess the type of release we should be doing (minor, patch)
"@semantic-release/commit-analyzer",
["@semantic-release/commit-analyzer", {
// Ensure that breaking changes trigger minor instead of major releases
"releaseRules": [
{breaking: true, release: 'minor'},
{tag: 'Breaking', release: 'minor'},
]
}]

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

0 comments on commit f1cc830

Please sign in to comment.