Skip to content

Commit 06baa95

Browse files
committed
chore: add conventional changelog for GitHub releases
Add @release-it/conventional-changelog plugin to generate release notes from conventional commits and write to CHANGELOG.md. Pinned to 10.0.1 due to whatBump bug in 10.0.2+: release-it/conventional-changelog#107
1 parent 43787dc commit 06baa95

File tree

3 files changed

+525
-5
lines changed

3 files changed

+525
-5
lines changed

.config/release-it.config.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,22 @@ export default {
44
git: {
55
commitArgs: ["--no-verify"],
66
},
7+
github: {
8+
release: true,
9+
},
10+
plugins: {
11+
"@release-it/conventional-changelog": {
12+
preset: {
13+
name: "conventionalcommits",
14+
types: [
15+
{ type: "feat", section: "Features" },
16+
{ type: "fix", section: "Bug Fixes" },
17+
{ type: "refactor", section: "Refactors" },
18+
{ type: "perf", section: "Performance" },
19+
],
20+
},
21+
infile: "CHANGELOG.md",
22+
header: "# Changelog",
23+
},
24+
},
725
} satisfies Config;

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@
215215
"@eslint/js": "^9.30.1",
216216
"@expo/metro-config": "~54.0.5",
217217
"@ianvs/prettier-plugin-sort-imports": "^4.4.2",
218+
"@release-it/conventional-changelog": "10.0.1",
218219
"@tailwindcss/postcss": "^4.1.12",
219220
"@testing-library/react-native": "^13.3.3",
220221
"@tsconfig/react-native": "^3.0.6",

0 commit comments

Comments
 (0)