summaryrefslogtreecommitdiff
path: root/.releaserc.json
diff options
context:
space:
mode:
Diffstat (limited to '.releaserc.json')
-rw-r--r--.releaserc.json51
1 files changed, 51 insertions, 0 deletions
diff --git a/.releaserc.json b/.releaserc.json
new file mode 100644
index 0000000..dd9e173
--- /dev/null
+++ b/.releaserc.json
@@ -0,0 +1,51 @@
+{
+ "branches": ["main"],
+ "plugins": [
+ ["@semantic-release/commit-analyzer", {
+ "preset": "angular",
+ "releaseRules": [
+ {"type": "feat", "release": "minor"},
+ {"type": "fix", "release": "patch"},
+ {"type": "perf", "release": "patch"},
+ {"type": "docs", "release": "patch"},
+ {"type": "style", "release": "patch"},
+ {"type": "refactor", "release": "patch"},
+ {"type": "test", "release": "patch"},
+ {"type": "chore", "release": "patch"},
+ {"scope": "breaking", "release": "major"}
+ ],
+ "parserOpts": {
+ "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"]
+ }
+ }],
+ ["@semantic-release/release-notes-generator", {
+ "preset": "angular",
+ "parserOpts": {
+ "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"]
+ },
+ "writerOpts": {
+ "commitsSort": ["scope", "subject"]
+ }
+ }],
+ ["@semantic-release/changelog", {
+ "changelogFile": "CHANGELOG.md"
+ }],
+ ["@semantic-release/npm", {
+ "npmPublish": false
+ }],
+ ["@semantic-release/git", {
+ "assets": ["CHANGELOG.md", "mix.exs", "VERSION"],
+ "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
+ }],
+ ["@semantic-release/gitlab", {
+ "assets": [
+ {"path": "CHANGELOG.md", "label": "Changelog"},
+ {"path": "VERSION", "label": "Version file"}
+ ]
+ }],
+ ["@semantic-release/exec", {
+ "verifyConditionsCmd": "echo 'Verification passed'",
+ "prepareCmd": "echo ${nextRelease.version} > VERSION && sed -i 's/version: \"[^\"]*\"/version: \"${nextRelease.version}\"/g' mix.exs"
+ }]
+ ]
+}