Skip to content

Commit

Permalink
Fix release creation
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jul 27, 2023
1 parent ab8c031 commit 6a992fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildtools/npm-publish
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a992fd

Please sign in to comment.