From f90c6fcbfb24fc93307eff5f3fb7092c8057aa58 Mon Sep 17 00:00:00 2001 From: Sean Erswell-Liljefelt <58994586+erzz@users.noreply.github.com> Date: Mon, 21 Mar 2022 21:58:08 +0100 Subject: [PATCH] ci: update release config to include maintenance --- .releaserc.json | 60 ++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 57 insertions(+), 3 deletions(-) diff --git a/.releaserc.json b/.releaserc.json index d436a30..5cfb61e 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -1,7 +1,61 @@ { "plugins": [ - "@semantic-release/commit-analyzer", - "@semantic-release/release-notes-generator", + [ + "@semantic-release/commit-analyzer", + { + "releaseRules": [{ "type": "chore", "release": "patch" }] + } + ], + [ + "@semantic-release/release-notes-generator", + { + "preset": "conventionalcommits", + "presetConfig": { + "types": [ + { + "type": "feat", + "section": ":sparkles: New Features", + "hidden": false + }, + { + "type": "fix", + "section": ":bug: Bug Fixes", + "hidden": false + }, + { + "type": "docs", + "section": ":memo: Documentation", + "hidden": true + }, + { + "type": "refactor", + "section": ":zap: Refactor", + "hidden": true + }, + { + "type": "perf", + "section": ":fast_forward: Performance", + "hidden": false + }, + { + "type": "test", + "section": ":white_check_mark: Tests", + "hidden": true + }, + { + "type": "ci", + "section": ":repeat: CI", + "hidden": true + }, + { + "type": "chore", + "section": ":package: Maintenance", + "hidden": false + } + ] + } + } + ], "@semantic-release/changelog", "@semantic-release/github", [ @@ -11,5 +65,5 @@ } ] ], - "branches": ["main"] + "branches": ["main", "master"] }