From 0063e184a9e77adf4aba17dba5322227f033a61c Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Thu, 23 Mar 2023 17:54:45 +0930 Subject: [PATCH 1/2] add config for note generator --- package.json | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index abe4be17..30d14ede 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,23 @@ ], "plugins": [ "@semantic-release/commit-analyzer", - "@semantic-release/release-notes-generator", + ["@semantic-release/release-notes-generator", { + "preset": "conventionalcommits", + "parserOpts": { + "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"] + }, + "presetConfig": { + "types": [ + {"type": "feat", "section": "Added"}, + {"type": "fix", "section": "Fixed"}, + {"type": "chore", "hidden": true}, + {"type": "docs", "hidden": true}, + {"type": "style", "hidden": true}, + {"type": "refactor", "hidden": true}, + {"type": "perf", "hidden": true}, + {"type": "test", "hidden": true} + ]} + }], "@semantic-release/changelog", "@semantic-release/npm", "@semantic-release/git", From 3731835f3c9a1a4e800d0572b5fac59e89dd6912 Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Mon, 27 Mar 2023 13:57:34 +0930 Subject: [PATCH 2/2] add types to config --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 30d14ede..278a9029 100644 --- a/package.json +++ b/package.json @@ -24,8 +24,12 @@ }, "presetConfig": { "types": [ - {"type": "feat", "section": "Added"}, + {"type": "add", "section": "Added"}, {"type": "fix", "section": "Fixed"}, + {"type": "change", "section": "Changed"}, + {"type": "deprecate", "section": "Deprecated"}, + {"type": "remove", "section": "Removed"}, + {"type": "security", "section": "Security"}, {"type": "chore", "hidden": true}, {"type": "docs", "hidden": true}, {"type": "style", "hidden": true},