我正在尝试使用 GitLab CI/CD 将 Angular 应用程序部署到 Firebase。
我的.gitlab-ci.yml长相是这样的
stages:
- build
- test
- deploy
build:
stage: build
script:
- ng build --prod --aot
test:
stage: test
script:
- echo Running tests...
deploy:
stage: deploy
script:
- call npm install -g firebase-tools
- firebase deploy --token $FIREBASE_TOKEN
我gitlab-runner在我的本地 PC 上使用,即使我安装了我需要的所有东西,并且我可以在本地毫无问题地运行这些脚本,但我不能对 GitLab CI/CD 做同样的事情。
在部署阶段,我不断得到
$ firebase deploy --token $FIREBASE_TOKEN
'firebase' 不是内部或外部命令、可运行程序或批处理文件。