.gitlab-ci.yml
image: node:latest
cache:
paths:
- node_modules/
# - app/bower_components # comment out if you have bower.json
# deploy_production:
# stage: deploy
# environment: Production
deploy_staging:
stage: deploy
environment: staging
only:
- master
script:
- npm install -g firebase-tools
# - npm install -g bower # comment out if you have bower.json
# - npm install # comment out if you have package.json
# - bower install --allow-root # comment out if you have bower.json
- firebase use $CI_PROJECT_NAME
- firebase deploy -m "Pipeline $CI_PIPELINE_ID, build $CI_BUILD_ID" --non-interactive --token $FIREBASE_TOKEN