diff --git a/yarn-project/deploy_npm.sh b/yarn-project/deploy_npm.sh index e3942117078..4f6ed2860bd 100755 --- a/yarn-project/deploy_npm.sh +++ b/yarn-project/deploy_npm.sh @@ -21,7 +21,7 @@ function deploy_package() { TAG_ARG="--tag $TAG" fi - PUBLISHED_VERSION=$(npm show . version ${TAG_ARG:-} 2> /dev/null) + PUBLISHED_VERSION=$(npm show . version ${TAG_ARG:-} 2> /dev/null) || true HIGHER_VERSION=$(npx semver ${VERSION} ${PUBLISHED_VERSION} | tail -1) # If there is already a published package equal to given version, assume this is a re-run of a deploy, and early out.