My objective is to serve firebase functions in my CI process, (and then run e2e tests).
So in dev I can do this, assuming I am already logged in:
firebase serve --only functions --port=9000 --project=<project_id>
However, in CI I am not logged in, and I therefore tried doing this:
firebase serve --only functions --port=9000 --project=<project_id> --token=<firebase-ci-token>
However this does not work - should it not be possible?
Update
I am now trying to run:
export FIREBASE_TOKEN=<firebase-token>
and then
firebase serve --only functions --port=9000 --project=eddystone-test-e4cd3
but it gives me some error (in the firebase-debug.log):
TypeError: Cannot read property 'refresh_token' of undefined