summaryrefslogtreecommitdiff
path: root/platform/node/scripts/after_success.sh
blob: 95921a42c22b7520eed712e39f9d8f8d9908cfa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

set -e
set -o pipefail

if [[ -n ${PUBLISH:-} ]]; then
    if [[ "${BUILDTYPE}" != "Release" ]]; then
        echo "Please run this script in release mode (BUILDTYPE=Release)."
        exit 1
    else
        ./node_modules/.bin/node-pre-gyp package publish info
    fi
fi