Skip to content

Commit

Permalink
Use pre-release-replacements
Browse files Browse the repository at this point in the history
  • Loading branch information
yutannihilation committed Jan 15, 2024
1 parent 3a35419 commit 036a4ff
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Changelog

## [Unreleased]
<!-- next-header -->
## [Unreleased] (ReleaseDate)

## v0.2.2 (2024-01-15)
## [v0.2.2] (2024-01-15)

### Breaking changes

Expand All @@ -26,3 +27,7 @@
really want to skip the initialization for some great reason, you can use
`new_without_init()` instead of `new()`.
* `#[savvy]` now accepts `savvy::Sexp` as input.

<!-- next-url -->
[Unreleased]: https://github.com/yutannihilation/savvy/compare/savvy-v0.2.2...HEAD
[v0.2.2]: https://github.com/yutannihilation/savvy/compare/savvy-v0.2.1...savvy-v0.2.2
9 changes: 9 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,12 @@ pr-run-mode = "plan"
[profile.dist]
inherits = "release"
lto = "thin"

[workspace.metadata.release]
pre-release-replacements = [
{ file = "CHANGELOG.md", search = "Unreleased", replace = "{{version}}", min = 1 },
{ file = "CHANGELOG.md", search = "\\.\\.\\.HEAD", replace = "...{{tag_name}}", exactly = 1 },
{ file = "CHANGELOG.md", search = "ReleaseDate", replace = "{{date}}", min = 1 },
{ file = "CHANGELOG.md", search = "<!-- next-header -->", replace = "<!-- next-header -->\n## [Unreleased] (ReleaseDate)\n", exactly = 1 },
{ file = "CHANGELOG.md", search = "<!-- next-url -->", replace = "<!-- next-url -->\n[Unreleased]: https://github.com/yutannihilation/savvy/compare/{{tag_name}}...HEAD", exactly = 1 },
]

0 comments on commit 036a4ff

Please sign in to comment.