From 9f2c9eb85e8cf6631701d56a7627b425db82d768 Mon Sep 17 00:00:00 2001 From: Alex Munoz Date: Sun, 3 Jul 2022 22:20:40 +0200 Subject: [PATCH] chore(npm-build): update template --- templates/npm/npm-build.gitlab-ci.yml | 5 +++++ 1 file changed, 5 insertions(+) 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: