Skip to content

Commit 226db8f

Browse files
committed
feat: configure GitHub release notes with conventional changelog
- Replace autoGenerate with conventional-changelog for release notes - Add @release-it/conventional-changelog plugin for proper changelog generation - This will show commit messages in GitHub releases like PrestaShop does
1 parent 4e06b1b commit 226db8f

File tree

3 files changed

+402
-9
lines changed

3 files changed

+402
-9
lines changed

.release-it.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
},
66
"github": {
77
"release": true,
8-
"autoGenerate": true
8+
"releaseNotes": "npx conventional-changelog -p conventionalcommits -u"
99
},
1010
"npm": {
1111
"publish": false
@@ -18,6 +18,12 @@
1818
"woocommerce-gateway-monei.php",
1919
"class-woocommerce-gateway-monei.php"
2020
]
21+
},
22+
"@release-it/conventional-changelog": {
23+
"infile": "CHANGELOG.md",
24+
"preset": {
25+
"name": "conventionalcommits"
26+
}
2127
}
2228
},
2329
"hooks": {

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
"@commitlint/cli": "^20.1.0",
2929
"@commitlint/config-conventional": "^20.0.0",
3030
"@release-it/bumper": "^7.0.5",
31+
"@release-it/conventional-changelog": "^10.0.1",
3132
"@wordpress/scripts": "^30.24.0",
33+
"conventional-changelog-cli": "^5.0.0",
3234
"husky": "^9.1.7",
3335
"release-it": "^19.0.5"
3436
},

0 commit comments

Comments
 (0)