Skip to content

Commit

Permalink
fix js-api version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysVuika committed Nov 23, 2023
1 parent 6759e2e commit e95226d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions scripts/update-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,17 @@ version_js_change() {
}

update_library_version() {
echo "====== $1@$VERSION ======"

DESTDIR="$DIR/../lib/$1"

if [[ $1 == "js-api" ]]; then
DESTDIR="$DESTDIR/src"
cd $DESTDIR/src
echo "====== $1@$JS_API_VERSION ======"
npm version --allow-same-version --no-git-tag-version --force --loglevel=error $JS_API_VERSION
else
cd $DESTDIR
echo "====== $1@$VERSION ======"
npm version --allow-same-version --no-git-tag-version --force --loglevel=error $VERSION
fi

cd $DESTDIR
npm version --allow-same-version --no-git-tag-version --force --loglevel=error $VERSION
}

update_dependency_version() {
Expand Down

0 comments on commit e95226d

Please sign in to comment.