Skip to content

Commit

Permalink
Set cargo-release up
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Apr 8, 2024
1 parent cbfd497 commit 9efc8ea
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 66 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
<!-- next-header -->

## [Unreleased] - ReleaseDate

### Added

Expand Down Expand Up @@ -800,7 +802,9 @@ and this project adheres to
The CHANGELOG for versions before 1.0.0 was moved to
[CHANGELOG-pre1.0.0.md](./CHANGELOG-pre1.0.0.md).

[unreleased]: https://github.com/CosmWasm/cosmwasm/compare/v2.0.1...HEAD

<!-- next-url -->
[Unreleased]: https://github.com/CosmWasm/cosmwasm/compare/v2.0.1...HEAD
[2.0.1]: https://github.com/CosmWasm/cosmwasm/compare/v2.0.0...v2.0.1
[2.0.0]: https://github.com/CosmWasm/cosmwasm/compare/v1.5.0...v2.0.0
[1.5.0]: https://github.com/CosmWasm/cosmwasm/compare/v1.4.1...v1.5.0
Expand Down
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ version = "2.0.1"
[workspace.dependencies]
schemars = "0.8.4"
serde = { version = "1.0.192", default-features = false, features = ["derive", "alloc"] }

[workspace.metadata.release]
shared-version = true
tag-message = "chore: Release cosmwasm v{{version}}"
tag-name = "v{{version}}"
61 changes: 0 additions & 61 deletions devtools/set_version.sh

This file was deleted.

3 changes: 2 additions & 1 deletion packages/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ repository = "https://github.com/CosmWasm/cosmwasm/tree/main/packages/core"
license = "Apache-2.0"
readme = "README.md"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[package.metadata.release]
release = false

[dependencies]
2 changes: 0 additions & 2 deletions packages/go-gen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ version = "0.1.0"
edition = "2021"
publish = false

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
cosmwasm-std = { version = "2.0.1", path = "../std", features = ["cosmwasm_2_0", "staking", "stargate"] }
cosmwasm-schema = { version = "2.0.1", path = "../schema" }
Expand Down
9 changes: 9 additions & 0 deletions packages/vm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ description = "VM bindings to run cosmwams contracts"
repository = "https://github.com/CosmWasm/cosmwasm/tree/main/packages/vm"
license = "Apache-2.0"

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

[features]
default = ["staking", "iterator"]
# iterator allows us to iterate over all DB items in a given range
Expand Down

0 comments on commit 9efc8ea

Please sign in to comment.