Skip to content

Commit f28f730

Browse files
committed
misc: add custom .releaserc.json
1 parent 869bdcc commit f28f730

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@ jobs:
1414

1515
- name: Release
1616
uses: agilecustoms/release@main
17+
with:
18+
npm-extra-deps: conventional-changelog-conventionalcommits@9.1.0
1719
env:
1820
GH_TOKEN: ${{ secrets.GH_PUBLIC_RELEASES_TOKEN }}

.releaserc.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"branches": [
3+
"main",
4+
{
5+
"name": "next",
6+
"prerelease": "beta",
7+
"channel": "beta"
8+
}
9+
],
10+
"plugins": [
11+
[
12+
"@semantic-release/commit-analyzer",
13+
{
14+
"preset": "conventionalcommits",
15+
"releaseRules": [
16+
{ "type": "perf", "release": false },
17+
{ "type": "docs", "release": "patch" },
18+
{ "type": "misc", "release": "patch" }
19+
]
20+
}
21+
],
22+
[
23+
"@semantic-release/release-notes-generator",
24+
{
25+
"preset": "conventionalcommits",
26+
"presetConfig": {
27+
"types": [
28+
{
29+
"type": "feat",
30+
"section": "Features"
31+
},
32+
{
33+
"type": "fix",
34+
"section": "Bug Fixes"
35+
},
36+
{
37+
"type": "docs",
38+
"section": "Documentation"
39+
},
40+
{
41+
"type": "misc",
42+
"section": "Miscellaneous"
43+
}
44+
]
45+
}
46+
}
47+
]
48+
]
49+
}

0 commit comments

Comments
 (0)