-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtbump.toml
More file actions
45 lines (36 loc) · 1.02 KB
/
tbump.toml
File metadata and controls
45 lines (36 loc) · 1.02 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
34
35
36
37
38
39
40
41
42
43
44
45
github_url = "https://github.com/kun-codes/Ferron-Proxy-Manager/"
[version]
current = "0.1.0-alpha"
# from: https://codeberg.org/your-tools/tbump/src/commit/4c5fee99a8287d3a6a88f915c121f36e78662784#setting-default-values-for-version-fields
regex = '''
(?P<major>\d+)
\.
(?P<minor>\d+)
\.
(?P<patch>\d+)
(\-
(?P<extra>.+)
)?
'''
[git]
message_template = "chore(version): bump version to {new_version}"
tag_template = "v{new_version}"
# from: https://codeberg.org/your-tools/tbump/src/commit/4c5fee99a8287d3a6a88f915c121f36e78662784#setting-default-values-for-version-fields
[[field]]
name = "extra"
default = ""
[[file]]
src = "backend/pyproject.toml"
search = 'version = "{current_version}"'
[[file]]
src = "backend/src/config.py"
search = 'app_version: str = "{current_version}"'
[[file]]
src = "backend/.env.example"
search = '# APP_VERSION={current_version}'
[[file]]
src = "frontend/package.json"
search = '"version": "{current_version}"'
[[before_commit]]
name = "sync uv lock file"
cmd = "cd backend && uv lock"