From 7158ba616c3a0b209c2ddadeb885d227d3257e3b Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 5 Oct 2021 23:30:27 -0400 Subject: [PATCH] Use --allow-same-version for npm Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com> --- bump_version | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bump_version b/bump_version index ccc792f70..c9fcba93b 100755 --- a/bump_version +++ b/bump_version @@ -27,7 +27,8 @@ old_version="$( grep "version:" ${build_file} | sed -E 's/version: "([0-9\.]+[-a echo "Old version: ${old_version}" # Bump the NPM version -npm --no-git-tag-version version v${new_version} +new_version_sed="$( cut -f1 -d'-' <<<"${new_version}" )" +npm --no-git-tag-version --allow-same-version version v${new_version_sed} # Set the build.yaml version to the specified new_version old_version_sed="$( sed 's/\./\\./g' <<<"${old_version}" )" # Escape the '.' chars