Use --allow-same-version for npm
Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This commit is contained in:
parent
36f195e643
commit
7158ba616c
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue