hotfix: add hotfix commit type to semantic-release config

- Add hotfix type to releaseRules (triggers patch release)
- Add Hotfixes section to release notes generator
- Without this, hotfix: commits are silently ignored by semantic-release
This commit is contained in:
Tam Nhu Tran
2026-03-27 15:03:49 -04:00
parent b22ea85fca
commit 0473f63623
+2
View File
@@ -20,6 +20,7 @@ const commitAnalyzer = [
{
preset: 'conventionalcommits',
releaseRules: [
{ type: 'hotfix', release: 'patch' },
{ type: 'docs', scope: 'README', release: 'patch' },
{ type: 'refactor', release: 'patch' },
{ type: 'style', release: 'patch' },
@@ -35,6 +36,7 @@ const releaseNotesGenerator = [
types: [
{ type: 'feat', section: 'Features' },
{ type: 'fix', section: 'Bug Fixes' },
{ type: 'hotfix', section: 'Hotfixes' },
{ type: 'docs', section: 'Documentation' },
{ type: 'style', section: 'Styles' },
{ type: 'refactor', section: 'Code Refactoring' },