diff --git a/.releaserc b/.releaserc index b7d1e50..93cf006 100644 --- a/.releaserc +++ b/.releaserc @@ -6,7 +6,24 @@ {"type": "chore", "release": "patch"} ] }], - "@semantic-release/release-notes-generator", + ["@semantic-release/release-notes-generator", { + "preset": "conventionalcommits", + "presetConfig": { + "types": [ + {"type": "feat", "section": "Features"}, + {"type": "fix", "section": "Bug Fixes"}, + {"type": "perf", "section": "Performance Improvements"}, + {"type": "revert", "section": "Reverts"}, + {"type": "chore", "section": "Miscellaneous Chores"}, + {"type": "refactor", "section": "Code Refactoring"}, + {"type": "docs", "section": "Documentation", "hidden": true}, + {"type": "style", "section": "Styles", "hidden": true}, + {"type": "test", "section": "Tests", "hidden": true}, + {"type": "build", "section": "Build System", "hidden": true}, + {"type": "ci", "section": "Continuous Integration", "hidden": true} + ] + } + }], ["@semantic-release/changelog", { "changelogFile": "CHANGELOG.md" }], @@ -18,4 +35,3 @@ "@semantic-release/github" ] } - diff --git a/package.json b/package.json index 3885ade..70bc3bc 100644 --- a/package.json +++ b/package.json @@ -80,6 +80,7 @@ "babel-plugin-source-map-support": "^2.2.0", "chai": "^4.1.2", "chai-as-promised": "^7.1.1", + "conventional-changelog-conventionalcommits": "^5.0.0", "eslint": "^7.32.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-import": "^2.26.0",