diff --git a/.bumpversion.toml b/.bumpversion.toml new file mode 100644 index 00000000..ebf898a2 --- /dev/null +++ b/.bumpversion.toml @@ -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}"