Skip to content

Commit 3b43214

Browse files
committed
fix: add missing conventional-changelog-conventionalcommits dependency
- Add conventional-changelog-conventionalcommits to devDependencies - Fix .releaserc configuration to properly use conventionalcommits preset - Move releaseRules into commit-analyzer plugin configuration - Remove unused release-notes-generator plugin
1 parent b724cb2 commit 3b43214

File tree

2 files changed

+23
-20
lines changed

2 files changed

+23
-20
lines changed

.releaserc

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
{
22
"branches": ["main"],
33
"plugins": [
4-
"@semantic-release/commit-analyzer",
5-
"@semantic-release/release-notes-generator",
4+
[
5+
"@semantic-release/commit-analyzer",
6+
{
7+
"preset": "conventionalcommits",
8+
"releaseRules": [
9+
{"type": "feat", "release": "minor"},
10+
{"type": "fix", "release": "patch"},
11+
{"type": "docs", "release": "patch"},
12+
{"type": "style", "release": "patch"},
13+
{"type": "refactor", "release": "patch"},
14+
{"type": "perf", "release": "patch"},
15+
{"type": "test", "release": "patch"},
16+
{"type": "chore", "release": "patch"},
17+
{"type": "ci", "release": "patch"},
18+
{"type": "build", "release": "patch"},
19+
{"type": "revert", "release": "patch"},
20+
{"breaking": true, "release": "major"}
21+
]
22+
}
23+
],
624
"@semantic-release/npm",
725
"@semantic-release/github"
8-
],
9-
"preset": "conventionalcommits",
10-
"releaseRules": [
11-
{"type": "feat", "release": "minor"},
12-
{"type": "fix", "release": "patch"},
13-
{"type": "docs", "release": "patch"},
14-
{"type": "style", "release": "patch"},
15-
{"type": "refactor", "release": "patch"},
16-
{"type": "perf", "release": "patch"},
17-
{"type": "test", "release": "patch"},
18-
{"type": "chore", "release": "patch"},
19-
{"type": "ci", "release": "patch"},
20-
{"type": "build", "release": "patch"},
21-
{"type": "revert", "release": "patch"},
22-
{"breaking": true, "release": "major"}
23-
],
24-
"generateNotes": false
26+
]
2527
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"@semantic-release/release-notes-generator": "^12.0.0",
3434
"@semantic-release/npm": "^11.0.0",
3535
"@semantic-release/github": "^9.0.0",
36-
"semantic-release": "^22.0.0"
36+
"semantic-release": "^22.0.0",
37+
"conventional-changelog-conventionalcommits": "^7.0.0"
3738
}
3839
}

0 commit comments

Comments
 (0)