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