Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix release creation
Browse files Browse the repository at this point in the history
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
@@ -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

0 comments on commit 6a992fd

Please sign in to comment.