Skip to content

Commit 594d788

Browse files
committed
fix: setup releaserc
1 parent 3c95299 commit 594d788

File tree

1 file changed

+84
-0
lines changed

1 file changed

+84
-0
lines changed

.github/config/.releaserc.json

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{
2+
"branches": ["main"],
3+
"tagFormat": "${version}",
4+
"plugins": [
5+
[
6+
"@semantic-release/commit-analyzer",
7+
{
8+
"preset": "conventionalcommits",
9+
"releaseRules": [
10+
{ "type": "build", "release": "patch" },
11+
{ "type": "docs", "release": "patch" },
12+
{ "type": "ci", "release": "patch" },
13+
{ "type": "feat", "release": "minor" },
14+
{ "type": "fix", "release": "patch" },
15+
{ "type": "perf", "release": "patch" },
16+
{ "type": "refactor", "release": "patch" },
17+
{ "type": "style", "release": "patch" },
18+
{ "type": "test", "release": "patch" },
19+
{ "revert": true, "release": "patch" },
20+
{ "breaking": true, "release": "major" }
21+
],
22+
"parserOpts": {
23+
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"]
24+
}
25+
}
26+
],
27+
[
28+
"@semantic-release/release-notes-generator",
29+
{
30+
"preset": "conventionalcommits",
31+
"presetConfig": {
32+
"types": [
33+
{
34+
"type": "build",
35+
"section": ":nut_and_bolt: Build",
36+
"hidden": false
37+
},
38+
{ "type": "ci", "section": ":repeat: CI", "hidden": false },
39+
{ "type": "docs", "section": ":memo: Docs", "hidden": false },
40+
{ "type": "feat", "section": ":sparkles: News", "hidden": false },
41+
{ "type": "fix", "section": ":bug: Fix", "hidden": false },
42+
{
43+
"type": "perf",
44+
"section": ":fast_forward: Performance",
45+
"hidden": false
46+
},
47+
{ "type": "refactor", "section": ":zap: Refact", "hidden": false },
48+
{
49+
"type": "revert",
50+
"section": ":flashlight: Revert",
51+
"hidden": false
52+
},
53+
{ "type": "style", "section": ":barber: Style", "hidden": false },
54+
{
55+
"type": "test",
56+
"section": ":white_check_mark: Test",
57+
"hidden": false
58+
}
59+
]
60+
}
61+
}
62+
],
63+
[
64+
"@semantic-release/github",
65+
{
66+
"addReleases": "top"
67+
}
68+
],
69+
[
70+
"@semantic-release/changelog",
71+
{
72+
"changelogFile": "CHANGELOG.md",
73+
"changelogTitle": "# Semantic Versioning Changelog"
74+
}
75+
],
76+
[
77+
"@semantic-release/git",
78+
{
79+
"assets": ["CHANGELOG.md", "README.md"],
80+
"message": "chore(release): version <%= nextRelease.version %> - <%= new Date().toLocaleDateString('en-US', {year: 'numeric', month: 'short', day: 'numeric', hour: 'numeric', minute: 'numeric' }) %>"
81+
}
82+
]
83+
]
84+
}

0 commit comments

Comments
 (0)