From bb8274147888ba70ee50282653f2aec566672911 Mon Sep 17 00:00:00 2001 From: Felix Wang Date: Mon, 21 Mar 2022 16:55:46 -0700 Subject: [PATCH] ci: Modify release script to only do minor release for breaking changes (#2431) Signed-off-by: Felix Wang --- .releaserc.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.releaserc.js b/.releaserc.js index 0eee11771b..00f145be37 100644 --- a/.releaserc.js +++ b/.releaserc.js @@ -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