diff --git a/.kokoro/test.sh b/.kokoro/test.sh index 862d478d3..ad22f5a96 100755 --- a/.kokoro/test.sh +++ b/.kokoro/test.sh @@ -20,6 +20,15 @@ export NPM_CONFIG_PREFIX=${HOME}/.npm-global cd $(dirname $0)/.. +# Enable airlock only for Kokoro presubmit jobs +if [[ ! -z "${KOKORO_JOB_TYPE}" && ${KOKORO_JOB_TYPE} =~ ^.*presubmit.*$ ]]; then + cat > .npmrc <