Dennis A. Boanini
Dennis A. Boanini

Reputation: 497

Error during deploy from pipeline on firebase

I try to deploy my angular application on firebase using gitlab pipeline.

I followed this guide and I write a gitlab-ci file more simplified for starting.

image: node:latest

cache:
  paths:
    - node-modules/

stages:
  - deploy

deploy:
  stage: deploy
  environment:
    name: development
  script:
    - npm install -g firebase-tools
    - npm install
    - npm run builddev
    - npm run deploy
  only:
    - master

Everything work until last command when I have this error

enter image description here

but if from terminal I run

firebase deploy --project test-1c121

everything work fine

Upvotes: 0

Views: 394

Answers (1)

Azaradel
Azaradel

Reputation: 301

Check your package.json file in scripts section. You probably have a typo in deploy because npm runs into problem with running firebse command and you want to run firebase.

Upvotes: 1

Related Questions