How to set process.env.CI to false

720 views
Skip to first unread message

Supriya Aggarwal

unread,
Jan 6, 2021, 7:14:14 PM1/6/21
to Firebase Google Group
Hello,

I have setup "Deploy to Firebase Hosting on PR". While pushing any changes, I am getting this error: "Treating warnings as errors because process.env.CI = true. Most CI servers set it automatically."

I want to know how I can set the CI environment variable to false so that the check doesn't fail in case of warnings. I have tried setting it in firebase-hosting-pull-request.yml and firebase-hosting-merge.yml but that doesn't change anything. 

Also, where can I find the value of this secret: FIREBASE_SERVICE_ACCOUNT_INSTASELL_7F53F

Thank you,
Supriya.
Screenshot 2021-01-07 at 2.12.22 AM.png

Supriya Aggarwal

unread,
Jan 12, 2021, 9:51:47 AM1/12/21
to Firebase Google Group
Hello, any updates on this please?

Arthur Thompson

unread,
Jan 12, 2021, 1:04:24 PM1/12/21
to fireba...@googlegroups.com
Hi Supriya,

Sorry for the late reply. I think your issue is related to running `npm ci`. Replacing that with `npm install` should not fail when there are warnings like `npm ci` might. Might be a good idea to see what those warnings are and resolve them.

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/0ada0cbc-2464-46e8-bd15-7b3e481b29cdn%40googlegroups.com.

Supriya Aggarwal

unread,
Feb 18, 2021, 5:11:00 AM2/18/21
to Firebase Google Group
Thank you! I tried this, it worked fine for a while but it started breaking again. Attaching screenshots below. Any help would be appreciated. :) 
Screenshot 2021-02-18 at 1.36.49 PM.png
Screenshot 2021-02-18 at 1.36.35 PM.png
Reply all
Reply to author
Forward
0 new messages