It's quite easy and the same process applies to all Firebase features with minor changes.
In order to deploy you'll need a deployment token (I named it FIREBASE_TOKEN
) and it can be
acquired by using the following command
firebase login:ci
Add it to your pipeline's environment variables or to your team's environment variables if you want to use it among multiple repositories.
You can define the function to get deployed using --only functions:addMessage
as defined on the
Firebase documentation.
The boring part is that you should find out which function got changed to deploy just it, what you
can do using git
.
https://github.com/firebase/firebase-tools#using-with-ci-systems
https://firebase.google.com/docs/functions/manage-functions#set_nodejs_version
Trying to execute this pipeline throws the following error
Error: HTTP Error: 401, Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential.
can you give me a hand with this?