diff --git a/.releaserc b/.releaserc index 252cc21..5ec9e15 100644 --- a/.releaserc +++ b/.releaserc @@ -5,6 +5,15 @@ "tagFormat": "v${version}", "plugins": [ "semantic-release-unsquash", + [ + "@semantic-release/commit-analyzer", + { + "preset": "angular", + "releaseRules": [ + {"type": "breaking", "release": "major"} + ] + } + ], "@semantic-release/release-notes-generator", "@semantic-release/npm", ["@semantic-release/git", { diff --git a/commitlint.config.ts b/commitlint.config.ts index 6083540..68e7b7e 100644 --- a/commitlint.config.ts +++ b/commitlint.config.ts @@ -5,9 +5,11 @@ import type { UserConfig } from '@commitlint/types'; const Configuration: UserConfig = { - extends: ['@commitlint/config-conventional'], - formatter: '@commitlint/format' + formatter: '@commitlint/format', + rules: { + 'type-enum': [2, 'always', ['build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test', 'breaking']] + } }; export default Configuration;