gilde-ci-cd/templates/npm/npm-build.gitlab-ci.yml
Marcel Feix 75799e32fc
Docs(*): Translate everything to english
Correction of some paths
2022-07-08 09:55:42 +02:00

22 lines
450 B
YAML

.npm-build:
image: $NODE_IMAGE
stage: build
variables:
ADDITIONAL_GLOBAL_PACKAGES: ""
before_script:
- npm install -g $ADDITIONAL_GLOBAL_PACKAGES
#Todo this needs Testing!!
- >
if [ "$CI_COMMIT_TAG" != "" ]; then
npm --no-git-tag-version version from-git
fi
#Testing END
script:
- npm install
- npm run build
artifacts:
expire_in: 2 weeks
when: always
paths:
- "**/dist/"