Skip to content

Commit

Permalink
chore: 添加 bump-my-version 配置
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Sep 11, 2024
1 parent 3774eb0 commit 5204dc2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .bumpversion.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[tool.bumpversion]
current_version = "0.9.7"
commit = true
message = "chore(release): {new_version}"

[[tool.bumpversion.files]]
filename = "pubspec.yaml"
search = "version: {current_version}"
replace = "version: {new_version}"

[[tool.bumpversion.files]]
filename = "CHANGELOG.md"
search = "## [Unreleased]"
replace = "## [Unreleased]\n\n## [{new_version}] - {now:%Y-%m-%d}"

[[tool.bumpversion.files]]
filename = "CHANGELOG.md"
regex = true
search = "\\[Unreleased\\]: (https://.+?)v{current_version}\\.\\.\\.HEAD"
replace = "[Unreleased]: \\1v{new_version}...HEAD\n[{new_version}]: \\1v{current_version}...v{new_version}"

0 comments on commit 5204dc2

Please sign in to comment.