0 Comments

In a .gitlab-ci.yml, I added a “script”:

 

build:

stage: build

script:

- npm ci


- npm run angular-build

 

 

angular-build, was defined in a pacakge.json as:

 

“scripts”: {

"angular-build": "ng build"

 

This would fail, because npm could not find ‘ng’.

I fixed this by adding a sleep between npm ci and npm run

 

build:

stage: build

script:

- npm ci


- sleep 5


- npm run angular-build

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related Posts