Skip to content

Commit

Permalink
Added some scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
vsubhuman committed Feb 8, 2022
1 parent b2cd640 commit 95f04b8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions build-and-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
. test.sh && npm run rust:build-nodejs
16 changes: 16 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
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 \
&& npm run js:publish-nodejs:${RELEASE_TYPE} \
&& npm run js:publish-browser:${RELEASE_TYPE} \
&& npm run js:publish-asm:${RELEASE_TYPE} \
&& (cd rust; cargo publish --allow-dirty)
1 change: 1 addition & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nvm i && npm i && npm run rust:test

0 comments on commit 95f04b8

Please sign in to comment.