Skip to content

Commit 51398d0

Browse files
committed
chore: setup release
Signed-off-by: Teakowa <27560638+Teakowa@users.noreply.github.com>
1 parent dc1683c commit 51398d0

File tree

1 file changed

+107
-0
lines changed

1 file changed

+107
-0
lines changed

.releaserc

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
{
2+
"branches": [
3+
"+([0-9])?(.{+([0-9]),x}).x",
4+
"main",
5+
{
6+
"name": "rc",
7+
"prerelease": true
8+
},
9+
{
10+
"name": "beta",
11+
"prerelease": true
12+
},
13+
{
14+
"name": "alpha",
15+
"prerelease": true
16+
}
17+
],
18+
"ci": false,
19+
"plugins": [
20+
[
21+
"@semantic-release/commit-analyzer",
22+
{
23+
"releaseRules": [
24+
{
25+
"type": "refactor",
26+
"release": "patch"
27+
},
28+
{
29+
"type": "perf",
30+
"release": "patch"
31+
}
32+
],
33+
"parserOpts": {
34+
"noteKeywords": [
35+
"BREAKING CHANGE",
36+
"BREAKING CHANGES",
37+
"BREAKING"
38+
]
39+
}
40+
}
41+
],
42+
[
43+
"@semantic-release/release-notes-generator",
44+
{
45+
"preset": "conventionalcommits",
46+
"parserOpts": {
47+
"noteKeywords": [
48+
"BREAKING CHANGE",
49+
"BREAKING CHANGES",
50+
"BREAKING"
51+
]
52+
},
53+
"presetConfig": {
54+
"types": [
55+
{
56+
"type": "feat",
57+
"section": ":sparkles: Features"
58+
},
59+
{
60+
"type": "fix",
61+
"section": ":bug: Bug Fixes"
62+
},
63+
{
64+
"type": "refactor",
65+
"section": ":recycle: Refactor",
66+
"hidden": false
67+
},
68+
{
69+
"type": "perf",
70+
"section": ":zap: Performance",
71+
"hidden": false
72+
},
73+
{
74+
"type": "chore",
75+
"hidden": true
76+
}
77+
]
78+
},
79+
"writerOpts": {
80+
"commitsSort": [
81+
"subject",
82+
"scope"
83+
]
84+
}
85+
}
86+
],
87+
[
88+
"@semantic-release/github",
89+
{
90+
"successComment": "This ${issue.pull_request ? 'PR is included' : 'issue has been resolved'} in version ${nextRelease.version} :tada:",
91+
"labels": false,
92+
"releasedLabels": [
93+
"shipped"
94+
]
95+
}
96+
],
97+
[
98+
"@semantic-release/git",
99+
{
100+
"assets": [
101+
"CHANGELOG-2.x.md"
102+
],
103+
"message": "chore(release): version ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
104+
}
105+
]
106+
]
107+
}

0 commit comments

Comments
 (0)