4 March, 2021
0 Comments
1 category
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
…
Category: Uncategorized