feat: add releases via semantic-release (#415)

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
This commit is contained in:
vladislav doster 2022-11-06 15:53:14 -06:00 committed by GitHub
parent 529aa20f42
commit cfa2f0ebcd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 44 additions and 0 deletions

43
.releaserc.json Normal file
View file

@ -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"
]
}

0
CHANGELOG.md Normal file
View file

1
VERSION Normal file
View file

@ -0,0 +1 @@
3.7.0