Use --allow-same-version for npm

Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This commit is contained in:
Joshua M. Boniface 2021-10-05 23:30:27 -04:00 committed by GitHub
parent 36f195e643
commit 7158ba616c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,8 @@ old_version="$( grep "version:" ${build_file} | sed -E 's/version: "([0-9\.]+[-a
echo "Old version: ${old_version}" echo "Old version: ${old_version}"
# Bump the NPM 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 # Set the build.yaml version to the specified new_version
old_version_sed="$( sed 's/\./\\./g' <<<"${old_version}" )" # Escape the '.' chars old_version_sed="$( sed 's/\./\\./g' <<<"${old_version}" )" # Escape the '.' chars