diff --git a/templates/npm/npm-build.gitlab-ci.yml b/templates/npm/npm-build.gitlab-ci.yml index 10202f9..5b77240 100644 --- a/templates/npm/npm-build.gitlab-ci.yml +++ b/templates/npm/npm-build.gitlab-ci.yml @@ -8,6 +8,11 @@ if [ "$FRONTEND_DIR" != "" ]; then cd $FRONTEND_DIR fi + # Requires npm > 8.X + - > + if [ "$CI_COMMIT_TAG" != "" ]; then + npm --no-git-tag-version version from-git + fi script: - npm run ci:build artifacts: