📜  使用 trivis 部署到 firebase - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:36.430000             🧑  作者: Mango

代码示例1
// 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