Skip to content

Commit d8fa86d

Browse files
committed
fix: semantic-release setup
1 parent 14e31d1 commit d8fa86d

File tree

1 file changed

+85
-0
lines changed

1 file changed

+85
-0
lines changed

package.json

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,91 @@
6868
"pre-commit": [
6969
"lint"
7070
],
71+
"release": {
72+
"branches": [
73+
"main"
74+
],
75+
"plugins": [
76+
[
77+
"@semantic-release/commit-analyzer",
78+
{
79+
"preset": "conventionalcommits",
80+
"releaseRules": [
81+
{
82+
"breaking": true,
83+
"release": "major"
84+
},
85+
{
86+
"revert": true,
87+
"release": "patch"
88+
},
89+
{
90+
"type": "feat",
91+
"release": "minor"
92+
},
93+
{
94+
"type": "fix",
95+
"release": "patch"
96+
},
97+
{
98+
"type": "docs",
99+
"release": "patch"
100+
},
101+
{
102+
"type": "test",
103+
"release": "patch"
104+
},
105+
{
106+
"type": "deps",
107+
"release": "patch"
108+
},
109+
{
110+
"scope": "no-release",
111+
"release": false
112+
}
113+
]
114+
}
115+
],
116+
[
117+
"@semantic-release/release-notes-generator",
118+
{
119+
"preset": "conventionalcommits",
120+
"presetConfig": {
121+
"types": [
122+
{
123+
"type": "feat",
124+
"section": "Features"
125+
},
126+
{
127+
"type": "fix",
128+
"section": "Bug Fixes"
129+
},
130+
{
131+
"type": "chore",
132+
"section": "Trivial Changes"
133+
},
134+
{
135+
"type": "docs",
136+
"section": "Documentation"
137+
},
138+
{
139+
"type": "deps",
140+
"section": "Dependencies"
141+
},
142+
{
143+
"type": "test",
144+
"section": "Tests"
145+
}
146+
]
147+
}
148+
}
149+
],
150+
"@semantic-release/changelog",
151+
"@semantic-release/npm",
152+
"@semantic-release/github",
153+
"@semantic-release/git"
154+
]
155+
},
71156
"contributors": [
72157
"Marcin Rataj <lidel@lidel.org>",
73158
"Friedel Ziegelmayer <dignifiedquire@gmail.com>",

0 commit comments

Comments
 (0)