Skip to content

Commit 2b2aace

Browse files
committed
Update package publish script to include dex and staking adapter traits
1 parent 637930b commit 2b2aace

1 file changed

Lines changed: 23 additions & 2 deletions

File tree

framework/publish/packages.sh

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ then
1313
exit 1
1414
fi
1515

16-
ALL_PACKAGES="abstract-interface abstract-adapter abstract-app abstract-ibc-host"
16+
ALL_PACKAGES="abstract-interface abstract-adapter abstract-app abstract-ibc-host utils"
17+
# These need to update the dependency of abstract-interface to use the version
18+
OTHER_PACKAGES="dex staking"
1719

1820
for pack in $ALL_PACKAGES; do
1921
(
@@ -23,7 +25,26 @@ for pack in $ALL_PACKAGES; do
2325
)
2426
done
2527

26-
echo "Everything is published!"
28+
echo "Packages are published!"
29+
30+
read -p "Please update the version of 'abstract-interface' to the published version and type 'yes' to continue: " input
31+
if [ "$input" != "yes" ]
32+
then
33+
echo "The script will terminate now. Please run it again after updating the version."
34+
exit 1
35+
fi
36+
37+
echo "Continuing with the publication of other packages..."
38+
39+
for pack in $OTHER_PACKAGES; do
40+
(
41+
cd "packages/$pack"
42+
echo "Publishing $pack"
43+
cargo publish --allow-dirty
44+
)
45+
done
46+
47+
echo "All packages have been published!"
2748

2849
# VERSION=$(grep -A1 "\[workspace.package\]" Cargo.toml | awk -F'"' '/version/ {print $2}');
2950
# git tag v"$VERSION"

0 commit comments

Comments
 (0)