Skip to content

Commit cfa2f0e

Browse files
authored
feat: add releases via semantic-release (zdharma-continuum#415)
Signed-off-by: Vladislav Doster <[email protected]>
1 parent 529aa20 commit cfa2f0e

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

.releaserc.json

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"repositoryUrl": "https://github.com/zdharma-continuum/zinit.git",
3+
"plugins": [
4+
[
5+
"@semantic-release/commit-analyzer",
6+
{
7+
"preset": "eslint",
8+
"releaseRules": [
9+
{ "tag": "chore", "release": "patch" },
10+
{ "tag": "ci", "release": "false" },
11+
{ "tag": "docs", "release": "patch" },
12+
{ "tag": "fix", "release": "patch" },
13+
{ "tag": "feat", "release": "minor" },
14+
{ "tag": "maint", "release": "patch" },
15+
{ "tag": "new", "release": "minor" },
16+
{ "tag": "style", "release": "patch" },
17+
{ "tag": "refactor", "release": "major" },
18+
{ "tag": "update", "release": "minor" }
19+
]
20+
}
21+
],
22+
["@google/semantic-release-replace-plugin", {
23+
"replacements": [
24+
{
25+
"files": ["VERSION"],
26+
"from": "^([0-9]).+([0-9]).+([0-9])$",
27+
"to": "${nextRelease.version}",
28+
"results": [ { "file": "VERSION", "hasChanged": true }
29+
]
30+
}
31+
]
32+
}
33+
],
34+
["@semantic-release/release-notes-generator", { "preset": "eslint" }],
35+
["@semantic-release/changelog", { "changelogFile": "CHANGELOG.md" } ],
36+
["@semantic-release/git", {
37+
"assets": ["CHANGELOG.md", "VERSION"],
38+
"message": "release: v${lastRelease.version} → v${nextRelease.version}\n\n${nextRelease.notes}"
39+
}
40+
],
41+
"@semantic-release/github"
42+
]
43+
}

CHANGELOG.md

Whitespace-only changes.

VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.7.0

0 commit comments

Comments
 (0)