-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.release-it.json
43 lines (43 loc) · 954 Bytes
/
.release-it.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
"npm": {
"publish": false,
"tag": "latest",
"version": true
},
"git": {
"requireCleanWorkingDir": true,
"requireBranch": "main",
"commitMessage": "chore: update changelog and bump version to v${version}",
"tagName": "v${version}",
"tagAnnotation": "Release v${version}",
"push": false
},
"github": {
"release": false
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": "conventionalcommits",
"infile": "CHANGELOG.md"
}
},
"hooks": {
"before:init": [
"yarn lint",
"yarn type-check",
"yarn test"
],
"before:bump": [
"git fetch origin main",
"git checkout -b release-v${version} origin/main"
],
"after:bump": [
"git commit --allow-empty -m 'Release v${version}'",
"git push origin HEAD:release-v${version}",
"echo ${version} > .version"
]
},
"version": {
"preRelease": "false"
}
}