Question : deploy to firebase using trivis
Answered by : yawning-yacare-c6j3pz2bsh2h
// get token in terminal
$ firebase login:ci
$ // token here
// add token to travis settings
// create file .travis.yaml
language: node_js
node_js: - "12"
script: - npm install - npm run build - echo "Deploying!"
install: - npm install -g firebase-tools
after_success: - firebase deploy --token $FIREBASE_TOKEN
$ firebase init
$ git push
// done
Source : | Last Update : Thu, 13 Aug 20