Skip to content

Commit c71a709

Browse files
dawsontothclaude
andcommitted
fix(release): consolidate release config so all commit types surface in notes
- **Resolved config shadowing:** `.releaserc.json` (no `presetConfig`) was silently overriding `release.config.js` (cosmiconfig loads the first match), so the preset fell back to defaults and hid `chore`/`chore(deps)`/etc. — dependency-only releases came out empty. Moved the `presetConfig` into `.releaserc.json` and **deleted the dead `release.config.js`**. - Aligned `presetConfig.types` to studio's superset. - Added the Renovate guard. (No lockfile change — the preset devDep is already on a 9.x range.) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 299d9f0 commit c71a709

3 files changed

Lines changed: 27 additions & 34 deletions

File tree

.releaserc.json

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,28 @@
2424
}
2525
}
2626
],
27-
"@semantic-release/release-notes-generator",
27+
[
28+
"@semantic-release/release-notes-generator",
29+
{
30+
"preset": "conventionalcommits",
31+
"presetConfig": {
32+
"types": [
33+
{ "type": "feat", "section": "Features" },
34+
{ "type": "fix", "section": "Bug Fixes" },
35+
{ "type": "perf", "section": "Performance Improvements" },
36+
{ "type": "refactor", "section": "Refactoring" },
37+
{ "type": "chore", "scope": "deps", "section": "Dependency Updates", "hidden": false },
38+
{ "type": "chore", "section": "Chores", "hidden": false },
39+
{ "type": "docs", "section": "Documentation" },
40+
{ "type": "style", "section": "Styles" },
41+
{ "type": "test", "section": "Tests" },
42+
{ "type": "build", "section": "Build System" },
43+
{ "type": "ci", "section": "Continuous Integration" },
44+
{ "type": "revert", "section": "Reverts" }
45+
]
46+
}
47+
}
48+
],
2849
[
2950
"@semantic-release/npm",
3051
{

release.config.js

Lines changed: 0 additions & 33 deletions
This file was deleted.

renovate.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
"matchUpdateTypes": ["minor", "patch"],
2121
"matchCurrentVersion": "!/^0/",
2222
"automerge": true
23+
},
24+
{
25+
"description": "Hold conventional-changelog-conventionalcommits on v9: @semantic-release/release-notes-generator@14 bundles the Handlebars conventional-changelog-writer@8, and preset v10's function-based templates render empty release notes under writer@8. Drop once release-notes-generator ships a writer@9 major.",
26+
"matchPackageNames": ["conventional-changelog-conventionalcommits"],
27+
"allowedVersions": "<10"
2328
}
2429
]
2530
}

0 commit comments

Comments
 (0)