我在Travis上添加了FIREBASE_TOKEN,我是从firebase登录名:ci生成的
我只对特拉维斯有这个错误

.travis.yml
#.travis.yml
language: node_js
node_js:
- "7"
branches:
only:
- master
before_script:
- npm install -g firebase-tools
- npm install -g @angular/cli
script:
- ng build --prod
after_success:
- firebase deploy --token $FIREBASE_TOKEN
notifications:
email:
on_failure: change
on_success: change我也不确定,但这是我的git忽略文件从角CLI
/dist文件夹不会被推到GitHub回购上,因为角CLI默认的gitignore,我可以取消对GitHub忽略文件的注释吗??
.gitignore
# See http://help.github.com/ignore-files/ for more about ignoring files.
# compiled output
/dist
/tmp
/out-tsc
# dependencies
/node_modules
# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace
# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
testem.log
/typings
# e2e
/e2e/*.js
/e2e/*.map
# System Files
.DS_Store
Thumbs.db发布于 2017-05-16 23:13:50
我忘记在.travis.yml中添加此代码,因为我在项目中使用了别名
after_success:
- firebase use --add my-alias
- firebase deploy --token $FIREBASE_TOKENhttps://stackoverflow.com/questions/44012576
复制相似问题