Skip to content

Commit 2713be8

Browse files
committed
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.
1 parent 7655fd8 commit 2713be8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ function lint() {
6868

6969
## deps - updates project dependencies to latest
7070
function deps() {
71+
npm config set registry https://registry.npmjs.org/ --project
72+
npm cache clean --force
7173
npm update --save
74+
npm config delete registry --project
7275
}
7376

7477
# write_e2e_env - Loads secrets from the gcloud project and writes
@@ -111,8 +114,7 @@ function write_e2e_env(){
111114
fi
112115

113116
echo "Getting test secrets from $TEST_PROJECT into $outfile"
114-
local_user=$(gcloud auth list --format 'value(account)' | tr -d '\n')
115-
117+
local_user=$(gcloud auth list --format 'value(account)' | grep '@google.com' | tr -d '\n')
116118
echo "Getting test secrets from $TEST_PROJECT into $1"
117119
{
118120
for env_name in "${secret_vars[@]}" ; do

0 commit comments

Comments
 (0)