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