From ffb04bda088bb9b21e4b179c985245c1c72da577 Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Thu, 1 Dec 2022 12:15:57 -0800 Subject: [PATCH] chore: update releaserc (#566) --- .releaserc | 19 ++++++++++++++++++- package.json | 1 + 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.releaserc b/.releaserc index b06bde766..93cf0060f 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" }], diff --git a/package.json b/package.json index e60f16253..b57b720a4 100644 --- a/package.json +++ b/package.json @@ -104,6 +104,7 @@ "babel-plugin-source-map-support": "^2.2.0", "chai": "^4.1.0", "chai-as-promised": "^7.1.1", + "conventional-changelog-conventionalcommits": "^5.0.0", "eslint-config-prettier": "^8.5.0", "fancy-log": "^2.0.0", "lint-staged": "^13.0.3",