Skip to content

Commit

Permalink
Add release checks
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Apr 8, 2024
1 parent 0ea9d87 commit d90593a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions devtools/release_checks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

# Move to the workspace root
WORKSPACE_PATH=$(dirname $(cargo locate-project --workspace --message-format=plain))
cd $WORKSPACE_PATH

cargo build

for contract_dir in contracts/*/; do
(cd "$contract_dir" && cargo build)
done
3 changes: 3 additions & 0 deletions packages/vm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ repository = "https://github.com/CosmWasm/cosmwasm/tree/main/packages/vm"
license = "Apache-2.0"

[package.metadata.release]
pre-release-hook = [
"../../devtools/release_checks.sh"
]
pre-release-replacements = [
{ file="../../CHANGELOG.md", search="## \\[Unreleased\\]", replace="## [{{version}}] - {{date}}", exactly=1 },
{ file="../../CHANGELOG.md", search="Unreleased", replace="{{version}}" },
Expand Down

0 comments on commit d90593a

Please sign in to comment.