File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,8 @@ export default async function deploy(
394394
console.log(`Logged into Firebase as ${user.email}.`);
395395
}
396396

397-
if(process.env.GOOGLE_APPLICATION_CREDENTIALS) {
397+
if(!firebaseToken && process.env.GOOGLE_APPLICATION_CREDENTIALS) {
398+
await spawnAsync(`gcloud auth activate-service-account --key-file ${process.env.GOOGLE_APPLICATION_CREDENTIALS}`);
398399
console.log(`Using Google Application Credentials.`);
399400
}
400401

0 commit comments

Comments
 (0)