Skip to content

Commit 53b54b7

Browse files
committed
ci(release): list every commit type in release notes
1 parent d7c99ac commit 53b54b7

3 files changed

Lines changed: 20 additions & 2 deletions

File tree

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
"@types/react-native-vector-icons": "^6.4.18",
113113
"@types/react-test-renderer": "18.3.1",
114114
"commitlint": "^19.4.1",
115+
"conventional-changelog-conventionalcommits": "^9.3.1",
115116
"del-cli": "^5.1.0",
116117
"eslint": "^8.4.1",
117118
"eslint-config-prettier": "^8.5.0",

‎release.config.js‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,23 @@ module.exports = {
2323
[
2424
"@semantic-release/release-notes-generator",
2525
{
26-
preset: "angular",
26+
// Every commit type is listed so a release never gets empty notes
27+
preset: "conventionalcommits",
28+
presetConfig: {
29+
types: [
30+
{ type: "feat", section: "Features" },
31+
{ type: "fix", section: "Bug Fixes" },
32+
{ type: "perf", section: "Performance Improvements" },
33+
{ type: "revert", section: "Reverts" },
34+
{ type: "docs", section: "Documentation" },
35+
{ type: "refactor", section: "Code Refactoring" },
36+
{ type: "build", section: "Build System" },
37+
{ type: "chore", section: "Miscellaneous Chores" },
38+
{ type: "ci", section: "Continuous Integration" },
39+
{ type: "test", section: "Tests" },
40+
{ type: "style", section: "Styles" },
41+
],
42+
},
2743
writerOpts: {
2844
footerPartial: [
2945
"{{#if noteGroups}}",

‎yarn.lock‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6412,7 +6412,7 @@ __metadata:
64126412
languageName: node
64136413
linkType: hard
64146414

6415-
"conventional-changelog-conventionalcommits@npm:^9.3.0":
6415+
"conventional-changelog-conventionalcommits@npm:^9.3.0, conventional-changelog-conventionalcommits@npm:^9.3.1":
64166416
version: 9.3.1
64176417
resolution: "conventional-changelog-conventionalcommits@npm:9.3.1"
64186418
dependencies:
@@ -14161,6 +14161,7 @@ __metadata:
1416114161
"@types/react-native-vector-icons": "npm:^6.4.18"
1416214162
"@types/react-test-renderer": "npm:18.3.1"
1416314163
commitlint: "npm:^19.4.1"
14164+
conventional-changelog-conventionalcommits: "npm:^9.3.1"
1416414165
del-cli: "npm:^5.1.0"
1416514166
eslint: "npm:^8.4.1"
1416614167
eslint-config-prettier: "npm:^8.5.0"

0 commit comments

Comments
 (0)