From 0df588c475f9da3a41308cd40334313335a94ebe Mon Sep 17 00:00:00 2001 From: Mathieu Date: Sun, 31 Mar 2024 14:21:15 +0200 Subject: [PATCH] ci: Add missing release config --- .releaserc.json | 130 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 .releaserc.json diff --git a/.releaserc.json b/.releaserc.json new file mode 100644 index 0000000..1fbaffe --- /dev/null +++ b/.releaserc.json @@ -0,0 +1,130 @@ +{ + "branches": [ + "main" + ], + "debug": "true", + "plugins": [ + [ + "@semantic-release/commit-analyzer", + { + "parserOpts": { + "noteKeywords": [ + "BREAKING CHANGE", + "BREAKING CHANGES" + ] + }, + "preset": "angular", + "releaseRules": [ + { + "breaking": true, + "release": "major" + }, + { + "release": "minor", + "type": "feat" + }, + { + "release": "patch", + "type": "fix" + }, + { + "release": false, + "type": "docs" + }, + { + "release": "patch", + "type": "style" + }, + { + "release": "patch", + "type": "refactor" + }, + { + "release": "patch", + "type": "perf" + }, + { + "release": false, + "type": "test" + }, + { + "release": "patch", + "type": "chore" + }, + { + "release": "patch", + "type": "dependencies" + }, + { + "release": "patch", + "type": "revert" + }, + { + "release": "patch", + "type": "translation" + }, + { + "release": "patch", + "type": "ci" + } + ] + } + ], + [ + "@semantic-release/release-notes-generator", + { + "parserOpts": { + "noteKeywords": [ + "BREAKING CHANGE", + "BREAKING CHANGES" + ] + }, + "preset": "conventionalCommits", + "presetConfig": { + "types": [ + { + "section": "Features", + "type": "feat" + }, + { + "section": "Bug Fixes", + "type": "fix" + }, + { + "section": "Performance Improvements", + "type": "perf" + }, + { + "section": "Reverts", + "type": "revert" + }, + { + "section": "Translations", + "type": "translation" + }, + { + "section": "Code Refactoring", + "type": "refactor" + }, + { + "section": "Style", + "type": "style" + }, + { + "hidden": false, + "section": "Dependencies", + "type": "dependencies" + }, + { + "hidden": false, + "section": "Chores", + "type": "chore" + } + ] + } + } + ], + "@semantic-release/changelog", + "@semantic-release/github" + ] +}