From fe685b824f1c63ad0e4aea74a18081d71ccd044d Mon Sep 17 00:00:00 2001 From: "Jamil Lambert, PhD" Date: Mon, 3 Mar 2025 17:25:34 +0000 Subject: [PATCH] Fix the release script that checks for TBD `release.sh` is missing `units`. Add `units` to the list of crates to check. Reorder the crates alphabetically. --- contrib/release.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/contrib/release.sh b/contrib/release.sh index b30f2fb84..c02657948 100755 --- a/contrib/release.sh +++ b/contrib/release.sh @@ -6,7 +6,7 @@ set -euox pipefail main () { - for crate in "internals" "hashes" "bitcoin"; do + for crate in "bitcoin" "hashes" "internals" "units"; do if release_changes $crate; then echo "$crate has changes implying this is a release PR, checking if we can publish ..." @@ -35,12 +35,14 @@ release_changes() { # We use `set -e` so this will fail the script if the dry-run fails. publish_dry_run() { local crate=$1 - if [ "$crate" == "hashes" ]; then + if [ "$crate" == "bitcoin" ]; then + cargo publish -p "bitcoin" --dry-run + elif [ "$crate" == "hashes" ]; then cargo publish -p "bitcoin_hashes" --dry-run elif [ "$crate" == "internals" ]; then cargo publish -p "bitcoin-internals" --dry-run - elif [ "$crate" == "bitcoin" ]; then - cargo publish -p "bitcoin" --dry-run + elif [ "$crate" == "units" ]; then + cargo publish -p "bitcoin-units" --dry-run fi }