mirror of
https://github.com/peritus/obsidian-interactive-ratings.git
synced 2026-07-22 05:43:17 +00:00
51 lines
1.5 KiB
TOML
51 lines
1.5 KiB
TOML
[tool.bumpversion]
|
|
current_version = "1.0.8"
|
|
|
|
# Parse pattern that understands both regular and preview versions
|
|
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(?:-(?P<release>preview)\\.(?P<preview>\\d+))?"
|
|
|
|
# Release serialization - always removes preview suffix
|
|
serialize = [
|
|
"{major}.{minor}.{patch}" # Final releases: 0.9.1
|
|
]
|
|
|
|
commit = true
|
|
tag = true
|
|
tag_name = "v{new_version}"
|
|
tag_message = "Release {new_version}"
|
|
message = "Bump version: {current_version} → {new_version}"
|
|
regex = true
|
|
|
|
# RELEASE CONFIG: Update package.json, manifest.json, AND sync preview config
|
|
|
|
[[tool.bumpversion.files]]
|
|
filename = "package.json"
|
|
search = '"version": "{current_version}"'
|
|
replace = '"version": "{new_version}"'
|
|
|
|
[[tool.bumpversion.files]]
|
|
filename = "manifest.json"
|
|
search = '"version": "[^"]*"'
|
|
replace = '"version": "{new_version}"'
|
|
regex = true
|
|
|
|
# Keep release config in sync
|
|
[[tool.bumpversion.files]]
|
|
filename = ".bumpversion.toml"
|
|
search = 'current_version = "{current_version}"'
|
|
replace = 'current_version = "{new_version}"'
|
|
|
|
# Keep preview config in sync with itself
|
|
[[tool.bumpversion.files]]
|
|
filename = ".bumpversion-preview.toml"
|
|
search = 'current_version = "{current_version}"'
|
|
replace = 'current_version = "{new_version}"'
|
|
|
|
# Release part: preview -> stable (stable is hidden in serialization)
|
|
[tool.bumpversion.parts.release]
|
|
values = ["preview", "stable"]
|
|
optional_value = "stable"
|
|
|
|
# Preview part: for incrementing preview numbers
|
|
[tool.bumpversion.parts.preview]
|
|
first_value = "1"
|