diff options
Diffstat (limited to 'platform/node/scripts/after_success.sh')
-rwxr-xr-x | platform/node/scripts/after_success.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/node/scripts/after_success.sh b/platform/node/scripts/after_success.sh index 18e00a4f0d..a5c3c5ec36 100755 --- a/platform/node/scripts/after_success.sh +++ b/platform/node/scripts/after_success.sh @@ -3,7 +3,9 @@ set -e set -o pipefail -if [[ "${PUBLISH:-}" == true ]]; then +PACKAGE_JSON_VERSION=`node -e "console.log(require('./package.json').version)"` + +if [[ "${CIRCLE_TAG}" == "node-v${PACKAGE_JSON_VERSION}" ]] || [[ "${PUBLISH:-}" == true ]]; then if [[ "${BUILDTYPE}" == "RelWithDebInfo" ]]; then ./node_modules/.bin/node-pre-gyp package publish info elif [[ "${BUILDTYPE}" == "Debug" ]]; then |