diff --git a/projects/cli/vite.config.ts b/projects/cli/vite.config.ts index 5a11a1bd1..c548d4f2c 100644 --- a/projects/cli/vite.config.ts +++ b/projects/cli/vite.config.ts @@ -116,6 +116,10 @@ async function getNextReleaseVersion() { [ '@semantic-release/commit-analyzer', { + parserOpts: { + headerPattern: /^(\w+)(?:\(([^)]*)\))?(!)?: (.*)$/, + headerCorrespondence: ['type', 'scope', 'breaking', 'subject'] + }, releaseRules: [ // Catch-all first: suppress default rules (false acts as baseline) { breaking: true, release: false }, diff --git a/release.config.js b/release.config.js index e05b3780b..445b9ad1d 100644 --- a/release.config.js +++ b/release.config.js @@ -21,6 +21,10 @@ export default { [ '@semantic-release/commit-analyzer', { + parserOpts: { + headerPattern: /^(\w+)(?:\(([^)]*)\))?(!)?: (.*)$/, + headerCorrespondence: ['type', 'scope', 'breaking', 'subject'] + }, releaseRules: [ // Catch-all first: suppress default rules (false acts as baseline) { breaking: true, release: false },