From d608e8c29e1aa88e39dfc316401a9dd493a6a34a Mon Sep 17 00:00:00 2001 From: Jack Williams Date: Mon, 27 Dec 2021 13:31:36 +0000 Subject: [PATCH] Easier commit rules Signed-off-by: GitHub --- .releaserc | 61 ++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 50 insertions(+), 11 deletions(-) diff --git a/.releaserc b/.releaserc index 8ddd326..be9dcf7 100644 --- a/.releaserc +++ b/.releaserc @@ -1,16 +1,55 @@ { - "branches": ["main"], + "branches": [ + "main" + ], "plugins": [ - "@semantic-release/commit-analyzer", + [ + "@semantic-release/commit-analyzer", + { + "releaseRules": [ + { + "type": "breaking", + "release": "major" + }, + { + "type": "feat", + "release": "minor" + }, + { + "message": "*", + "release": "patch" + }, + { + "scope": "no-release", + "release": false + } + ] + } + ], "@semantic-release/release-notes-generator", - ["@semantic-release/npm", { - "npmPublish": false - }], - ["@semantic-release/github", { - "assets": ["*.midiMixerPlugin"] - }], - ["@semantic-release/git", { - "assets": ["package.json", "package-lock.json", "plugin.json"] - }] + [ + "@semantic-release/npm", + { + "npmPublish": false + } + ], + [ + "@semantic-release/github", + { + "assets": [ + "*.midiMixerPlugin" + ] + } + ], + [ + "@semantic-release/git", + { + "assets": [ + "package.json", + "package-lock.json", + "plugin.json" + ] + } + ] ] }