From 794c66caa57d31a8a3994b2f233d475bf3c20711 Mon Sep 17 00:00:00 2001 From: Vladislav Doster Date: Sun, 6 Nov 2022 15:52:09 -0600 Subject: [PATCH] feat: add releases via semantic-release Signed-off-by: Vladislav Doster --- .releaserc.json | 43 +++++++++++++++++++++++++++++++++++++++++++ CHANGELOG.md | 0 VERSION | 1 + 3 files changed, 44 insertions(+) create mode 100644 .releaserc.json create mode 100644 CHANGELOG.md create mode 100644 VERSION diff --git a/.releaserc.json b/.releaserc.json new file mode 100644 index 000000000..4f6689087 --- /dev/null +++ b/.releaserc.json @@ -0,0 +1,43 @@ +{ + "repositoryUrl": "https://github.com/zdharma-continuum/zinit.git", + "plugins": [ + [ + "@semantic-release/commit-analyzer", + { + "preset": "eslint", + "releaseRules": [ + { "tag": "chore", "release": "patch" }, + { "tag": "ci", "release": "false" }, + { "tag": "docs", "release": "patch" }, + { "tag": "fix", "release": "patch" }, + { "tag": "feat", "release": "minor" }, + { "tag": "maint", "release": "patch" }, + { "tag": "new", "release": "minor" }, + { "tag": "style", "release": "patch" }, + { "tag": "refactor", "release": "major" }, + { "tag": "update", "release": "minor" } + ] + } + ], + ["@google/semantic-release-replace-plugin", { + "replacements": [ + { + "files": ["VERSION"], + "from": "^([0-9]).+([0-9]).+([0-9])$", + "to": "${nextRelease.version}", + "results": [ { "file": "VERSION", "hasChanged": true } + ] + } + ] + } + ], + ["@semantic-release/release-notes-generator", { "preset": "eslint" }], + ["@semantic-release/changelog", { "changelogFile": "CHANGELOG.md" } ], + ["@semantic-release/git", { + "assets": ["CHANGELOG.md", "VERSION"], + "message": "release: v${lastRelease.version} → v${nextRelease.version}\n\n${nextRelease.notes}" + } + ], + "@semantic-release/github" + ] +} diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 000000000..e69de29bb diff --git a/VERSION b/VERSION new file mode 100644 index 000000000..7c69a55db --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +3.7.0