<p>I found the solution.</p>

<p>As build artifact you need to publish, <code>firebase.json</code>, <code>.firebaserc</code> and whole <code>functions</code> folder including <code>package.json</code> (without <code>node_modules</code>)</p>

<p>Then in release using <code>sudo firebase deploy --token $(firebase-token) --project $(firebase-project) --only functions --force</code> </p>

CC BY-SA 4.0
2019-06-04T13:15:36.510Z
2019-06-04T13:15:36.510Z
Reza
<p>I have a project which has <code>firebase functions</code> </p>

<p>From my local I can run <code>firebase deploy --only functions</code> and it will build and deploy firebase functions to firebase.</p>

<p>Now I want to enable CICD via Azure Devops.
So I need to build the functions in CI and get the build artifact in CD to deploy it to different firebase project (as different environments).</p>

<p>The problem is building and deploying is done in the same time via <code>firebase deploy</code></p>

<p>I googled a lot not able to find a solution</p>

<p><a href="https://i.sstatic.net/phXaq.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/phXaq.png" alt="enter image description here"></a></p>

<azure-devops><azure><google-cloud-platform><cicd>
How to integrate firebase functions into devops pipeline
Reza
# How to integrate firebase functions into devops pipeline

(Asked by: username_0 on 2019-06-03)

I have a project which has `firebase functions`

From my local I can run `firebase deploy --only functions` and it will build and deploy firebase functions to firebase.

Now I want to enable CICD via Azure Devops.
So I need to build the functions in CI and get the build artifact in CD to deploy it to different firebase project (as different environments).

The problem is building and deploying is done in the same time via `firebase deploy`

I googled a lot not able to find a solution

[![enter image description here](https://i.sstatic.net/phXaq.png)](https://i.sstatic.net/phXaq.png)

**Tags:** azure-devops, azure, google-cloud-platform, cicd


---

## 1 answers

### Answer by username_0 on 2019-06-04. Score: 1 | Accepted answer

I found the solution.

As build artifact you need to publish, `firebase.json`, `.firebaserc` and whole `functions` folder including `package.json` (without `node_modules`)

Then in release using `sudo firebase deploy --token $(firebase-token) --project $(firebase-project) --only functions --force`


---

