diff options
author | Bobby Sudekum <bobby@mapbox.com> | 2017-05-31 10:41:37 -0700 |
---|---|---|
committer | Bobby Sudekum <bobby@mapbox.com> | 2017-06-01 08:41:23 -0700 |
commit | ac19fe545de1466629fd24c769869c1916a1aa68 (patch) | |
tree | d54ebf1d6b421ded4755f9ecfd6687ff544220af | |
parent | 24f7d3f33e9f19db4745807aa089a0423dda6d03 (diff) | |
download | qtlocation-mapboxgl-ac19fe545de1466629fd24c769869c1916a1aa68.tar.gz |
better publish check
-rwxr-xr-x | platform/node/scripts/after_success.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/platform/node/scripts/after_success.sh b/platform/node/scripts/after_success.sh index ead819dea2..d761d4110f 100755 --- a/platform/node/scripts/after_success.sh +++ b/platform/node/scripts/after_success.sh @@ -6,7 +6,10 @@ set -o pipefail if [[ -n ${PUBLISH:-} ]]; then if [[ "${BUILDTYPE}" == "RelWithDebInfo" ]]; then ./node_modules/.bin/node-pre-gyp package publish info - else + elif [[ "${BUILDTYPE}" == "Debug" ]]; then ./node_modules/.bin/node-pre-gyp package publish info --debug + else + echo "error: must provide either Debug or RelWithDebInfo for BUILDTYPE" + exit 1 fi fi |