From af0787450d8685680307b54eea6fd544c3bbac04 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Wed, 24 Apr 2024 09:45:13 -0700 Subject: [PATCH] Don't install dev dependencies when building - Use npm to install ng - Temporarily add npm manually until runner image is updated --- .gitlab-ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 91bbedc..4d18ab7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,7 +33,10 @@ test: build-branch: stage: build script: - - yarn install + # Temporarily install npm manually until we get it added to the runner image + - apk add npm + - yarn install --production + - npm install @angular/cli - yarn build --no-progress --configuration production --aot - export APP_VERSION=`git describe --dirty --tags --long --match '*[0-9]*'` - 'echo "window.appVersion = \"$APP_VERSION\";" > dist/web-remote/assets/version.js' @@ -46,7 +49,10 @@ build-branch: build-tag: stage: build script: - - yarn install + # Temporarily install npm manually until we get it added to the runner image + - apk add npm + - yarn install --production + - npm install @angular/cli - yarn build --no-progress --configuration production --aot - 'echo "window.appVersion = \"$CI_COMMIT_TAG\";" > dist/web-remote/assets/version.js' artifacts: