mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
feat: add releases via semantic-release (#415)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
This commit is contained in:
parent
529aa20f42
commit
cfa2f0ebcd
43
.releaserc.json
Normal file
43
.releaserc.json
Normal 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
0
CHANGELOG.md
Normal file
Loading…
Reference in a new issue