deploy to firebase using trivis 1

deploy to firebase using trivis

// get token in terminal
$ firebase login:ci
$ // token here

// add token to travis  settings

// create file .travis.yaml
language: node_js
  - "12"
  - npm install
  - npm run build
  - echo "Deploying!"
  - npm install -g firebase-tools
  - firebase deploy --token $FIREBASE_TOKEN
$ firebase init

$ git push

// done

Here is what the above code is Doing:
1. We’re telling Travis that we want to use Node.js version 12.
2. We’re telling Travis to run npm install and npm run build.
3. We’re telling Travis to install the Firebase CLI.
4. We’re telling Travis to deploy our app to Firebase.

Similar Posts