From 6cc5469afd3a9d6fa86c0357cfe35478f3b81f9a Mon Sep 17 00:00:00 2001 From: DoubleU23 <5007050+DoubleU23@users.noreply.github.com> Date: Mon, 6 Sep 2021 11:33:45 +0200 Subject: [PATCH] config: add `semantic-release` settings --- .releaserc | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 .releaserc diff --git a/.releaserc b/.releaserc new file mode 100644 index 0000000..f661ce3 --- /dev/null +++ b/.releaserc @@ -0,0 +1,74 @@ +{ + "branches": [ + "master", + "main" + ], + "repositoryUrl": "https://github.com/stackr23/react-stack", + "plugins": [ + [ + "@semantic-release/commit-analyzer", + { + "config": "@stackr23/conventional-changelog-config", + "releaseRules": [ + { + "type": "feat", + "release": "minor" + }, + { + "type": "fix", + "release": "patch" + }, + { + "type": "config", + "release": "patch" + }, + { + "type": "script", + "release": "patch" + }, + { + "type": "style", + "release": "patch" + }, + { + "type": "deps", + "release": "patch" + } + ] + } + ], + [ + "@semantic-release/release-notes-generator", + { + "config": "@stackr23/conventional-changelog-config" + } + ], + [ + "@semantic-release/changelog", + { + "changelogFile": "CHANGELOG.md", + "changelogTitle": "# Changelog\n\n> generated with [@semantic-release/changelog](https://github.com/semantic-release/changelog)\n\n" + } + ], + [ + "@semantic-release/npm", + { + "npmPublish": false, + "tarballDir": "releases" + } + ], + [ + "@semantic-release/git", + { + "assets": [ + "CHANGELOG.md", + "package.json" + ], + "message": "chore(release): 🤖🔖🚀 v${nextRelease.version} \n\n${nextRelease.notes} [skip ci]" + } + ], + [ + "@semantic-release/github" + ] + ] +}