All Articles

Deploy a Node App To Firebase with Travis CI

  1. Enable Travis CI for your repository
  2. Create a .travis.yml file in the root of your project
language: node_js
node_js:
- "8"
- "6"
script: yarn build // replace with your app's build script
deploy:
  provider: firebase
  skip_cleanup: true
  1. Install the firebase-cli tools
yarn global add firebase-tools
  1. Generate a Firebase login token
firebase login:ci
  1. Encrypt and add your firebase token to .travis.yml
travis encrypt "YOUR_TOKEN_HERE" --add deploy.token
  1. Commit and push.travis.yml to your repo
Published 11 Jul 2017