Skip to content

Commit

Permalink
ci: Modify release script to only do minor release for breaking chang…
Browse files Browse the repository at this point in the history
…es (#2431)

Signed-off-by: Felix Wang <[email protected]>
  • Loading branch information
felixwang9817 authored Mar 21, 2022
1 parent e0041f1 commit bb82741
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 bb82741

Please sign in to comment.