gilde-ci-cd/templates/npm/npm-build.gitlab-ci.yml
Timo Beller f49484d11d fix(npm-build): Code führt zu Fehler (s.u.), daher erstmal entfernt
npm ERR! code ENOGIT
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-07-13T13_58_45_828Z-debug-0.log
2022-07-13 16:47:14 +02:00

18 lines
322 B
YAML

.npm-build:
image: $NODE_IMAGE
stage: build
variables:
FRONTEND_BUILD_DIR: '**/dist'
before_script:
- >
if [ "$FRONTEND_DIR" != "" ]; then
cd $FRONTEND_DIR
fi
script:
- npm run ci:build
artifacts:
expire_in: 2 weeks
when: always
paths:
- '$FRONTEND_BUILD_DIR'