From a16dc78f51981ced60bbb337b4c105b44f52f6d6 Mon Sep 17 00:00:00 2001 From: Artem Derevnjuk Date: Thu, 29 Feb 2024 15:38:22 +0400 Subject: [PATCH] ci: improve release notes (#5) --- .releaserc | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/.releaserc b/.releaserc index 5c6fc0c..e6c67a7 100644 --- a/.releaserc +++ b/.releaserc @@ -3,6 +3,7 @@ [ "@semantic-release/commit-analyzer", { + "releaseRules": [{ "type": "docs", "release": "patch" }], "parserOpts": { "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"] } @@ -11,12 +12,35 @@ [ "@semantic-release/release-notes-generator", { - "preset": "angular", + "preset": "conventionalcommits", "parserOpts": { - "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"] + "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"] + }, + "presetConfig": { + "types": [ + { "type": "feat", "section": "Features" }, + { "type": "perf", "section": "Performance Improvements" }, + { "type": "fix", "section": "Bug Fixes" }, + { "type": "docs", "section": "Documentation" }, + { "type": "revert", "section": "Reverts" }, + { "type": "build", "section": "Build System", "hidden": true }, + { "type": "chore", "section": "Build System", "hidden": true }, + { + "type": "ci", + "section": "Continuous Integration", + "hidden": true + }, + { + "type": "refactor", + "section": "Code Refactoring", + "hidden": true + }, + { "type": "style", "section": "Styles", "hidden": true }, + { "type": "test", "section": "Tests", "hidden": true } + ] }, "writerOpts": { - "commitsSort": ["subject", "scope"] + "commitsSort": ["scope", "subject"] } } ], @@ -44,8 +68,6 @@ } ] ], - "branches": [ - "main" - ], + "branches": ["main"], "ci": true }