As a workaround, we ended up using the following command instead of the mentioned command:
npm --allow-same-version --no-git-tag-version version $(git describe --tags --abbrev=0 --match "v*")
In other words, calling git describe
instead of using from-git
.