From a68e24182c9253aa0043c0edfd8c1b02a9f72f5d Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Fri, 7 Apr 2023 11:50:42 -0700 Subject: [PATCH] chore: update .releaserc This changes three things in `.releaserc` (which controls how `semantic-release` works): 1. Switched the preset from `angular` to `conventionalcommits` to match our changelog and commitlint configurations. 2. Removed the rule which causes `chore`-type commits to be released as patch versions. This was causing many unnecessary releases. 3. Hide `chore`- and `refactor`-type commits from the changelog. These are typically not useful to end users. --- .releaserc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.releaserc b/.releaserc index 93cf0060fc..3bb30916f8 100644 --- a/.releaserc +++ b/.releaserc @@ -1,10 +1,7 @@ { "plugins": [ ["@semantic-release/commit-analyzer", { - "preset": "angular", - "releaseRules": [ - {"type": "chore", "release": "patch"} - ] + "preset": "conventionalcommits" }], ["@semantic-release/release-notes-generator", { "preset": "conventionalcommits", @@ -14,8 +11,8 @@ {"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": "chore", "section": "Miscellaneous Chores", "hidden": true}, + {"type": "refactor", "section": "Code Refactoring", "hidden": true}, {"type": "docs", "section": "Documentation", "hidden": true}, {"type": "style", "section": "Styles", "hidden": true}, {"type": "test", "section": "Tests", "hidden": true},