Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change / fix packages publishing order #769

Merged
merged 1 commit into from
Jul 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ fi
# this should really more to cosmwasm...
STORAGE_PACKAGES="storage-macro storage-plus"
# these are imported by other packages
BASE_PACKAGES="utils"
ALL_PACKAGES="controllers cw1 cw2 cw3 cw4 cw20 cw1155 multi-test"
BASE_PACKAGES="cw2"
UTILS_PACKAGES="utils"
ALL_PACKAGES="controllers cw1 cw3 cw4 cw20 cw1155 multi-test"

# This is imported by cw3-fixed-multisig, which is imported by cw3-flex-multisig
# need to make a separate category to remove race conditions
Expand Down Expand Up @@ -52,6 +53,18 @@ done
echo "Waiting for publishing base packages"
sleep $SLEEP_TIME

for pack in $UTILS_PACKAGES; do
(
cd "packages/$pack"
echo "Publishing $pack"
cargo publish
)
done

# wait for these to be processed on crates.io
echo "Waiting for publishing utils packages"
sleep $SLEEP_TIME

for pack in $ALL_PACKAGES; do
(
cd "packages/$pack"
Expand Down