Skip to content

Commit 9aa5f25

Browse files
committed
fix(templates): added plugins to .releaserc
Added plugins and release rules to .releaserc template
1 parent 6cf9d6b commit 9aa5f25

File tree

2 files changed

+77
-3
lines changed

2 files changed

+77
-3
lines changed

.releaserc

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,35 @@
11
{
22
"ci": "false",
33
"plugins": [
4-
"@semantic-release/commit-analyzer",
4+
[
5+
"@semantic-release/commit-analyzer",
6+
{
7+
"releaseRules": [
8+
{
9+
"type": "docs",
10+
"release": "patch"
11+
},
12+
{
13+
"type": "improvement",
14+
"release": "patch"
15+
},
16+
{
17+
"type": "style",
18+
"release": "patch"
19+
},
20+
{
21+
"type": "improvement",
22+
"release": "patch"
23+
}
24+
],
25+
"parserOpts": {
26+
"noteKeywords": [
27+
"BREAKING CHANGE",
28+
"BREAKING CHANGES"
29+
]
30+
}
31+
}
32+
],
533
"@semantic-release/release-notes-generator",
634
[
735
"@semantic-release/changelog",

templates/releaserc

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,49 @@
11
{
2-
"ci": "false"
3-
}
2+
"ci": "false",
3+
"plugins": [
4+
[
5+
"@semantic-release/commit-analyzer",
6+
{
7+
"releaseRules": [
8+
{
9+
"type": "docs",
10+
"release": "patch"
11+
},
12+
{
13+
"type": "improvement",
14+
"release": "patch"
15+
},
16+
{
17+
"type": "style",
18+
"release": "patch"
19+
},
20+
{
21+
"type": "improvement",
22+
"release": "patch"
23+
}
24+
],
25+
"parserOpts": {
26+
"noteKeywords": [
27+
"BREAKING CHANGE",
28+
"BREAKING CHANGES"
29+
]
30+
}
31+
}
32+
],
33+
"@semantic-release/release-notes-generator",
34+
[
35+
"@semantic-release/changelog",
36+
{
37+
"changelogFile": "CHANGELOG.md"
38+
}
39+
],
40+
[
41+
"@semantic-release/git",
42+
{
43+
"assets": [
44+
"CHANGELOG.md"
45+
]
46+
}
47+
]
48+
]
49+
}

0 commit comments

Comments
 (0)