gilde-ci-cd/templates/npm/npm-build.gitlab-ci.yml
2022-07-08 09:55:35 +02:00

19 lines
353 B
YAML

.npm-build:
image: $NODE_IMAGE
stage: build
before_script:
#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/"