-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
.release-it.json
41 lines (41 loc) · 979 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
{
"git": {
"commit": true,
"tag": false,
"push": false
},
"github": {
"release": false
},
"npm": {
"publish": false
},
"plugins": {
"@release-it/bumper": {
"out": [
{
"file": "pyproject.toml",
"path": "tool.poetry.version"
},
{
"file": "./saleor/__init__.py",
"type": "text/plain"
}
]
}
},
"hooks": {
"before:bump": [
"git rev-parse --abbrev-ref HEAD > .base_ver_release.txt"
],
"after:bump": [
"git checkout -B release-${version} --track"
],
"after:release": [
"git push origin release-${version}",
"npx release-it --changelog > .release_changelog.txt",
"gh pr create --base `cat .base_ver_release.txt` --head release-${version} --title \"Release ${version}\" --body-file '.release_changelog.txt' --label release --assignee @me",
"rm .release_changelog.txt .base_ver_release.txt"
]
}
}