-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.release-it.json
More file actions
33 lines (33 loc) · 1.13 KB
/
.release-it.json
File metadata and controls
33 lines (33 loc) · 1.13 KB
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
{
"git": {
"commitMessage": "chore: release v${version}",
"tagName": "v${version}",
"tagAnnotation": "Release v${version}",
"requireCleanWorkingDir": true,
"requireUpstream": true
},
"github": {
"release": true,
"releaseName": "v${version}",
"autoGenerate": true
},
"npm": {
"publish": false
},
"hooks": {
"before:init": [
"git fetch --tags"
],
"before:bump": [
"echo 'Bumping version to ${version}'"
],
"after:bump": [
"python -c \"import re, sys; p='pyproject.toml'; t=open(p).read(); t=re.sub(r'version = \\\"[^\\\"]+\\\"', f'version = \\\"${version}\\\"', t, count=1); open(p,'w').write(t)\"",
"python -c \"import re, sys; p='kiku_dist/__init__.py'; t=open(p).read(); t=re.sub(r'__version__ = \\\"[^\\\"]+\\\"', f'__version__ = \\\"${version}\\\"', t); open(p,'w').write(t)\"",
"git add pyproject.toml kiku_dist/__init__.py"
],
"after:release": [
"echo 'Released ${name} v${version} to ${repo.repository}'"
]
}
}