Skip to content

Commit 0a5ad2e

Browse files
chore: generate release notes for chore and refactor types (#2144)
### 🎯 Goal Add `conventional-changelog-conventionalcommits` package and adjust `.releaserc.json` so that `chore(deps)` & `refactor` type releases generate notes to the `CHANGELOG.md`. This helped: semantic-release/commit-analyzer#233
1 parent f9a4836 commit 0a5ad2e

File tree

3 files changed

+43
-1
lines changed

3 files changed

+43
-1
lines changed

β€Ž.releaserc.jsonβ€Ž

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,41 @@
2222
]
2323
}
2424
],
25-
"@semantic-release/release-notes-generator",
25+
[
26+
"@semantic-release/release-notes-generator",
27+
{
28+
"preset": "conventionalcommits",
29+
"presetConfig": {
30+
"types": [
31+
{
32+
"type": "fix",
33+
"section": "Bug Fixes",
34+
"hidden": false
35+
},
36+
{
37+
"type": "feat",
38+
"section": "Features",
39+
"hidden": false
40+
},
41+
{
42+
"type": "chore",
43+
"section": "Chores",
44+
"hidden": false
45+
},
46+
{
47+
"type": "refactor",
48+
"section": "Refactors",
49+
"hidden": false
50+
},
51+
{
52+
"type": "perf",
53+
"section": "Performance Improvements",
54+
"hidden": false
55+
}
56+
]
57+
}
58+
}
59+
],
2660
[
2761
"@semantic-release/changelog",
2862
{

β€Žpackage.jsonβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125
"babel-plugin-module-resolver": "^4.1.0",
126126
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
127127
"codecov": "^3.8.1",
128+
"conventional-changelog-conventionalcommits": "^7.0.2",
128129
"core-js": "^3.6.5",
129130
"css-loader": "^5.0.1",
130131
"eslint": "7.14.0",

β€Žyarn.lockβ€Ž

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4823,6 +4823,13 @@ conventional-changelog-conventionalcommits@^4.3.1:
48234823
lodash "^4.17.15"
48244824
q "^1.5.1"
48254825

4826+
conventional-changelog-conventionalcommits@^7.0.2:
4827+
version "7.0.2"
4828+
resolved "https://registry.yarnpkg.com/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-7.0.2.tgz#aa5da0f1b2543094889e8cf7616ebe1a8f5c70d5"
4829+
integrity sha512-NKXYmMR/Hr1DevQegFB4MwfM5Vv0m4UIxKZTTYuD98lpTknaZlSRrDOG4X7wIXpGkfsYxZTghUN+Qq+T0YQI7w==
4830+
dependencies:
4831+
compare-func "^2.0.0"
4832+
48264833
conventional-changelog-writer@^5.0.0:
48274834
version "5.0.1"
48284835
resolved "https://registry.yarnpkg.com/conventional-changelog-writer/-/conventional-changelog-writer-5.0.1.tgz#e0757072f045fe03d91da6343c843029e702f359"

0 commit comments

Comments
Β (0)