diff --git a/package.json b/package.json index 0a7892b..d75ccf6 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,6 @@ "@storybook/test": "^7.6.12", "@types/react-dom": "^18.2.18", "@typescript-eslint/parser": "^6.20.0", - "conventional-changelog-conventionalcommits": "^7.0.2", "eslint": "^8.56.0", "eslint-config-airbnb": "^19.0.4", "eslint-plugin-import": "^2.29.1", diff --git a/release.config.cjs b/release.config.cjs index be2c815..034b4ad 100644 --- a/release.config.cjs +++ b/release.config.cjs @@ -7,7 +7,18 @@ module.exports = { [ '@semantic-release/commit-analyzer', { - preset: 'conventionalcommits', + parserOpts: { + noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES'], + }, + preset: 'eslint', + releaseRules: [ + { release: 'patch', type: 'docs' }, + { release: 'patch', type: 'refactor' }, + { release: 'patch', type: 'style' }, + { release: 'patch', type: 'test' }, + { release: 'patch', type: 'build' }, + { release: 'patch', type: 'ci' }, + ], }, ], '@semantic-release/release-notes-generator',