Skip to content

Commit

Permalink
chore: update .releaserc
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
boneskull committed Apr 7, 2023
1 parent 9d82149 commit a68e241
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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},
Expand Down

0 comments on commit a68e241

Please sign in to comment.