forked from dcSpark/cardano-multiplatform-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.sh
executable file
·34 lines (30 loc) · 839 Bytes
/
release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
set -eu
if [ $1 = "prod" ];
then RELEASE_TYPE="prod"
elif [ $1 = "beta" ];
then RELEASE_TYPE="beta"
else
echo "First parameter is expected 'prod' or 'beta'"
return 1
fi
echo "Preparing ${RELEASE_TYPE} release"
. build-and-test.sh
# publish on crates.io
cargo publish -p cml-core
cargo publish -p cml-crypto
cargo publish -p cml-chain
cargo publish -p cml-cip25
cargo publish -p cml-cip36
cargo publish -p cml-multi-era
cargo publish -p cml-core-wasm
cargo publish -p cml-crypto-wasm
cargo publish -p cml-chain-wasm
cargo publish -p cml-cip25-wasm
cargo publish -p cml-cip36-wasm
cargo publish -p cml-multi-era-wasm
cargo publish -p cardano-multiplatform-lib
# pubish on NPM
npm run js:publish-nodejs:${RELEASE_TYPE}
npm run js:publish-browser:${RELEASE_TYPE}
# asmjs builds broken for now
# npm run js:publish-asm:${RELEASE_TYPE}