Skip to content

Commit 95f04b8

Browse files
committed
Added some scripts
1 parent b2cd640 commit 95f04b8

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

build-and-test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
. test.sh && npm run rust:build-nodejs

release.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
if [ $1 = "prod" ];
2+
then RELEASE_TYPE="prod"
3+
elif [ $1 = "beta" ];
4+
then RELEASE_TYPE="beta"
5+
else
6+
echo "First parameter is expected 'prod' or 'beta'"
7+
return 1
8+
fi
9+
10+
echo "Preparing ${RELEASE_TYPE} release"
11+
12+
. build-and-test.sh \
13+
&& npm run js:publish-nodejs:${RELEASE_TYPE} \
14+
&& npm run js:publish-browser:${RELEASE_TYPE} \
15+
&& npm run js:publish-asm:${RELEASE_TYPE} \
16+
&& (cd rust; cargo publish --allow-dirty)

test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nvm i && npm i && npm run rust:test

0 commit comments

Comments
 (0)