-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.semver.toml
52 lines (46 loc) · 1.14 KB
/
.semver.toml
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
46
47
48
49
50
51
52
[semver]
current_version = '0.4.0-dev.4'
last_stable_version = '0.3.0'
default_part = 'minor'
[semver.files."ohmyfpg/Cargo.toml"]
search = '''
[package]
name = "ohmyfpg"
version = "{current_version}"
'''
replace = '''
[package]
name = "ohmyfpg"
version = "{new_version}"
'''
[semver.files."ohmyfpg_core/Cargo.toml"]
search = '''
[package]
name = "ohmyfpg_core"
version = "{current_version}"
'''
replace = '''
[package]
name = "ohmyfpg_core"
version = "{new_version}"
'''
[semver.files."HISTORY.md"]
search = '## Unreleased'
replace = '''
## Unreleased
## [v{new_version} - {utc_today_ymd}](https://github.com/se7entyse7en/ohmyfpg/compare/v{last_stable_version}...v{new_version})'''
stable_only = true
[semver.files."pyproject.toml"]
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'
[semver.files."python/ohmyfpg/__init__.py"]
search = '__VERSION__ = "{current_version}"'
replace = '__VERSION__ = "{new_version}"'
[semver.prerelease]
bump_script = '''
var PREFIX = "dev.";
function bump(version) {
var counter = !version.prerelease ? 0 : parseInt(version.prerelease.slice(PREFIX.length));
return `${PREFIX}${counter + 1}`;
}
'''