Skip to content

Commit b76282f

Browse files
committed
feat: semantic release
1 parent b405a04 commit b76282f

File tree

1 file changed

+100
-0
lines changed

1 file changed

+100
-0
lines changed

.releaserc.json

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
{
2+
"branches": [
3+
"main"
4+
],
5+
"plugins": [
6+
[
7+
"@semantic-release/commit-analyzer",
8+
{
9+
"preset": "conventionalcommits"
10+
}
11+
],
12+
[
13+
"@semantic-release/release-notes-generator",
14+
{
15+
"preset": "conventionalcommits",
16+
"presetConfig": {
17+
"types": [
18+
{
19+
"type": "feat",
20+
"section": "Features"
21+
},
22+
{
23+
"type": "fix",
24+
"section": "Bug Fixes"
25+
},
26+
{
27+
"type": "chore",
28+
"hidden": true
29+
},
30+
{
31+
"type": "docs",
32+
"section": "Documentation"
33+
},
34+
{
35+
"type": "style",
36+
"hidden": true
37+
},
38+
{
39+
"type": "refactor",
40+
"section": "Refactors"
41+
},
42+
{
43+
"type": "perf",
44+
"section": "Performance"
45+
},
46+
{
47+
"type": "test",
48+
"hidden": true
49+
},
50+
{
51+
"type": "depr",
52+
"section": "Deprecations"
53+
}
54+
]
55+
}
56+
}
57+
],
58+
[
59+
"semantic-release-replace-plugin",
60+
{
61+
"replacements": [
62+
{
63+
"files": [
64+
"package.json"
65+
],
66+
"from": "\"version\": \".*\"",
67+
"to": "\"version\": \"${nextRelease.version}\"",
68+
"results": [
69+
{
70+
"file": "package.json",
71+
"hasChanged": true,
72+
"numMatches": 1,
73+
"numReplacements": 1
74+
}
75+
],
76+
"countMatches": true
77+
}
78+
]
79+
}
80+
],
81+
[
82+
"@semantic-release/changelog",
83+
{
84+
"changelogFile": "CHANGELOG.md",
85+
"changelogTitle": "# Changelog"
86+
}
87+
],
88+
"@semantic-release/github",
89+
[
90+
"@semantic-release/git",
91+
{
92+
"assets": [
93+
"package.json",
94+
"CHANGELOG.md"
95+
],
96+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
97+
}
98+
]
99+
]
100+
}

0 commit comments

Comments
 (0)