summaryrefslogtreecommitdiff
path: root/platform/node/scripts/after_success.sh
blob: 7ef8f5354543e7164e395909a08a648ccc02d00d (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}" == "Debug" ]]; 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