Skip to content

Commit

Permalink
feat: add releases via semantic-release (zdharma-continuum#415)
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Doster <[email protected]>
  • Loading branch information
vladdoster authored Nov 6, 2022
1 parent 529aa20 commit cfa2f0e
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
Empty file added CHANGELOG.md
Empty file.
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.7.0

0 comments on commit cfa2f0e

Please sign in to comment.