From 2713be8bc79dc87af04244e7a8acd45583290b2f Mon Sep 17 00:00:00 2001 From: hessjc Date: Tue, 13 Jan 2026 05:59:30 +0000 Subject: [PATCH] chore: Update build.sh script to work consistently with other projects This fixes a number of small issues with build.sh related to running on a linux dev machine. --- build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 90224288..776e70f8 100755 --- a/build.sh +++ b/build.sh @@ -68,7 +68,10 @@ function lint() { ## deps - updates project dependencies to latest function deps() { + npm config set registry https://registry.npmjs.org/ --project + npm cache clean --force npm update --save + npm config delete registry --project } # write_e2e_env - Loads secrets from the gcloud project and writes @@ -111,8 +114,7 @@ function write_e2e_env(){ fi echo "Getting test secrets from $TEST_PROJECT into $outfile" - local_user=$(gcloud auth list --format 'value(account)' | tr -d '\n') - + local_user=$(gcloud auth list --format 'value(account)' | grep '@google.com' | tr -d '\n') echo "Getting test secrets from $TEST_PROJECT into $1" { for env_name in "${secret_vars[@]}" ; do