From 8a9300699dc95ec1945bf46e45d0d66dc83347e4 Mon Sep 17 00:00:00 2001 From: Christian Pedersen Date: Thu, 30 Jan 2025 11:29:34 +0100 Subject: [PATCH] ci: add release rules to ensure all commit types trigger version bump --- .github/conventional-changelog.config.cjs | 32 ++++++++++++++++------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/.github/conventional-changelog.config.cjs b/.github/conventional-changelog.config.cjs index 8d34248..1f85367 100644 --- a/.github/conventional-changelog.config.cjs +++ b/.github/conventional-changelog.config.cjs @@ -1,14 +1,26 @@ module.exports = { types: [ - { type: 'feat', section: 'Features' }, - { type: 'fix', section: 'Bug Fixes' }, - { type: 'chore', section: 'Maintenance' }, - { type: 'docs', section: 'Documentation' }, - { type: 'style', section: 'Styling' }, - { type: 'refactor', section: 'Code Refactoring' }, - { type: 'perf', section: 'Performance' }, - { type: 'test', section: 'Testing' }, - { type: 'ci', section: 'CI/CD' }, - { type: 'build', section: 'Build System' } + { type: 'feat', section: 'Features', hidden: false }, + { type: 'fix', section: 'Bug Fixes', hidden: false }, + { type: 'chore', section: 'Maintenance', hidden: false }, + { type: 'docs', section: 'Documentation', hidden: false }, + { type: 'style', section: 'Styling', hidden: false }, + { type: 'refactor', section: 'Code Refactoring', hidden: false }, + { type: 'perf', section: 'Performance', hidden: false }, + { type: 'test', section: 'Testing', hidden: false }, + { type: 'ci', section: 'CI/CD', hidden: false }, + { type: 'build', section: 'Build System', hidden: false } + ], + releaseRules: [ + { type: 'feat', release: 'minor' }, + { type: 'fix', release: 'patch' }, + { type: 'perf', release: 'patch' }, + { type: 'chore', release: 'patch' }, + { type: 'docs', release: 'patch' }, + { type: 'style', release: 'patch' }, + { type: 'refactor', release: 'patch' }, + { type: 'test', release: 'patch' }, + { type: 'ci', release: 'patch' }, + { type: 'build', release: 'patch' } ] };