I'm trying to deploy a Angular 4 app to Firebase using GitLab CI but it's failing.
Here is my CI configuration:
image: node:latest
cache:
paths:
- node_modules/
stages:
- setup
- build
- deploy
setup:
stage: setup
script:
- npm install
only:
- master
build:
stage: build
script:
- npm install -g @angular/cli
- ng build -prod
only:
- master
deploy:
stage: deploy
script:
- npm install -g @angular/cli
- npm install -g firebase-tools
- ng build -prod
- firebase use --token $FIREBASE_DEPLOY_KEY production
- firebase deploy -m "Pipeline $CI_PIPELINE_ID, build $CI_BUILD_ID" --non-interactive --token $FIREBASE_DEPLOY_KEY
only:
- master
It's failing at the build stage, i think it's cause the @angular/cli install command.
Also, there is the log of the build stage: http://pasted.co/8d06985e