From 6a992fd4b368e730726a70db8c1fe3ace3921fd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Thu, 27 Jul 2023 13:37:27 +0200 Subject: [PATCH] Fix release creation --- buildtools/npm-publish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildtools/npm-publish b/buildtools/npm-publish index eaeddc81f5ec..aed3ca0093a6 100755 --- a/buildtools/npm-publish +++ b/buildtools/npm-publish @@ -36,7 +36,7 @@ if [ "${GITHUB_REPOSITORY}" = "camptocamp/ngeo" ]; then if [[ "${GITHUB_REF}" =~ ^refs/tags/.* ]]; then GIT_TAG="${GITHUB_REF//refs\/tags\//}" echo "The tag ${GIT_TAG} should be published to npm" - if [[ "${GIT_TAG}" =~ ^[0-9]+\.[0-9]+\.[0-9]+-[a-z]+\.[0-9]+$ ]]; then + if [[ "${GIT_TAG}" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[a-z]+\.[0-9]+)?$ ]]; then echo "This is a regular version (not a dev version)" TAG="--tag version-$(echo "${GIT_TAG}" | awk -F[.-] '{print $4}')" else