Skip to content

Commit

Permalink
[ACS-6370] fix js-api version bump (#9119)
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysVuika authored Nov 27, 2023
1 parent 3daecb1 commit 4313869
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions scripts/update-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ get_next_version() {
}

VERSION=`get_next_version $DIR/..`
JS_API_VERSION=`get_next_version $DIR/../lib/js-api/src`
JS_API_VERSION=`get_next_version $DIR/../lib/js-api`

echo "====== New libs version: $VERSION ====="
echo "====== New js-api version: $VERSION ====="
Expand All @@ -70,13 +70,12 @@ version_js_change() {

update_library_version() {
DESTDIR="$DIR/../lib/$1"
cd $DESTDIR

if [[ $1 == "js-api" ]]; then
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
Expand Down Expand Up @@ -105,11 +104,6 @@ update_dependencies() {

update_library_dependencies() {
DESTDIR="$DIR/../lib/$1"

if [[ $1 == "js-api" ]]; then
DESTDIR="$DESTDIR/src"
fi

cd $DESTDIR
update_dependencies $1
}
Expand Down

0 comments on commit 4313869

Please sign in to comment.