title: Bitbucket Pipeline + Firebase hosting
body: <p>I am trying to integrate Bitbucket pipeline with firebase hosting to achieve continuous delivery. Everything seems to work fine until it's required to deploy the public folder.</p>
  
  <p>Here's my 'bitbucket-pipelines.yml':</p>
  
  <pre><code>image: gabrielaraujof/angular-cli
  
  pipelines:
    default:
      - step:
          caches:
            - node
          script: # Modify the commands below to build your repository.
            - npm install
            - npm build
            - firebase deploy --token=$FIREBASE_TOKEN --project MT_PROJECT --only hosting --public dist
  </code></pre>
  
  <p>Where npm build runs "ng build". When i run the "firebase deploy.." command on my local machine it works fine cause the dist directory is there. But when it's run by Bitbucket Pipeline it throws this error:</p>
  
  <pre><code>=== Deploying to MY_PROJECT...
  i  deploying hosting
  Error: Specified public directory does not exist, can't deploy hosting
  </code></pre>
  
  <p>It seems like the bitbucket pipeline does not generate the dist folder which firebase deploy is trying to find (dist).</p>