Compare commits

...

2 Commits

Author SHA1 Message Date
Raoul Snyman fcc1f543d0 Merge branch 'dont-install-dev-deps' into 'master'
Don't install dev dependencies when building

See merge request openlp/web-remote!103
2024-04-26 15:54:19 +00:00
Raoul Snyman 4fd8fe0f54 Don't install dev dependencies when building 2024-04-26 15:54:18 +00:00
1 changed files with 8 additions and 2 deletions

View File

@ -33,7 +33,10 @@ test:
build-branch: build-branch:
stage: build stage: build
script: 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 - yarn build --no-progress --configuration production --aot
- export APP_VERSION=`git describe --dirty --tags --long --match '*[0-9]*'` - export APP_VERSION=`git describe --dirty --tags --long --match '*[0-9]*'`
- 'echo "window.appVersion = \"$APP_VERSION\";" > dist/web-remote/assets/version.js' - 'echo "window.appVersion = \"$APP_VERSION\";" > dist/web-remote/assets/version.js'
@ -46,7 +49,10 @@ build-branch:
build-tag: build-tag:
stage: build stage: build
script: 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 - yarn build --no-progress --configuration production --aot
- 'echo "window.appVersion = \"$CI_COMMIT_TAG\";" > dist/web-remote/assets/version.js' - 'echo "window.appVersion = \"$CI_COMMIT_TAG\";" > dist/web-remote/assets/version.js'
artifacts: artifacts: