From 137e50c2eae6af372e99fe9e32d77e401d0f2777 Mon Sep 17 00:00:00 2001 From: Sakthivel Subramanian Date: Tue, 26 Nov 2024 12:03:57 +0530 Subject: [PATCH] ci(spanner): use airlock for presubmit jobs --- .kokoro/test.sh | 9 +++++++++ package.json | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) 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 <