From e738e8e46de9d135260c95a0c8a3adc43ac82f60 Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Fri, 9 Sep 2022 09:13:34 +0200 Subject: [PATCH] wip --- scripts/ci/node_package.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/scripts/ci/node_package.sh b/scripts/ci/node_package.sh index 74af9bbbe..93a42dd08 100755 --- a/scripts/ci/node_package.sh +++ b/scripts/ci/node_package.sh @@ -6,10 +6,11 @@ set -o pipefail echo "node version is:" which node node -v - -#if [[ ${PUBLISH} == 'On' ]]; then - #echo "PUBLISH is set to '${PUBLISH}', publishing!" - NPM_FLAGS='' +PUBLISH=On +BUILD_TYPE=Release +if [[ ${PUBLISH} == 'On' ]]; then + echo "PUBLISH is set to '${PUBLISH}', publishing!" + NPM_FLAGS='' if [[ ${BUILD_TYPE} == "Debug" ]]; then NPM_FLAGS='--debug' fi @@ -32,6 +33,6 @@ node -v fi ./node_modules/.bin/node-pre-gyp package testpackage $NPM_FLAGS -# else -# echo "PUBLISH is set to '${PUBLISH}', skipping." -# fi +else + echo "PUBLISH is set to '${PUBLISH}', skipping." +fi