Skip to content

Commit 7ef6cbb

Browse files
committed
fix(release): configure conventionalcommits preset for semantic-release
The default angular preset does not recognize the `!` syntax in commit types (e.g., `feat!:`) for triggering major version bumps. Switch both commit-analyzer and release-notes-generator to the conventionalcommits preset which properly handles breaking change indicators.
1 parent 501c829 commit 7ef6cbb

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

package-lock.json

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,18 @@
3131
"main"
3232
],
3333
"plugins": [
34-
"@semantic-release/commit-analyzer",
35-
"@semantic-release/release-notes-generator",
34+
[
35+
"@semantic-release/commit-analyzer",
36+
{
37+
"preset": "conventionalcommits"
38+
}
39+
],
40+
[
41+
"@semantic-release/release-notes-generator",
42+
{
43+
"preset": "conventionalcommits"
44+
}
45+
],
3646
"@semantic-release/github",
3747
[
3848
"@semantic-release/changelog",
@@ -67,6 +77,7 @@
6777
"@semantic-release/git": "^10.0.1",
6878
"@types/node": "^25.3.5",
6979
"@vercel/ncc": "^0.38.4",
80+
"conventional-changelog-conventionalcommits": "^9.3.0",
7081
"eslint": "^10.0.2",
7182
"semantic-release": "^25.0.3",
7283
"typescript": "^5.9.3",

0 commit comments

Comments
 (0)