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
Hello @Donkijote,
I'd guess that's probably because of the node version. It won't allow the installation of the lastest
firebase-tools
, and probably the one available tonode@6.11
doesn't connect to the firebase API anymore.Yeap, as for June 8th 2020 the support for node
8.x
was dropped (imagine for6.x
😅)I updated the script to use the latest node version supported by firebase. As of today, the latest stable is
v12
. You can usev14
, but it is still in beta.https://firebase.google.com/docs/functions/manage-functions#set_nodejs_version