From 40770b4eead888831172b72d5174153ee0d07e89 Mon Sep 17 00:00:00 2001 From: Eldar Gabdullin Date: Tue, 2 Jan 2024 15:16:49 +0300 Subject: [PATCH] handle package discovery error in npm-tag.sh --- ops/npm-tag.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ops/npm-tag.sh b/ops/npm-tag.sh index c3ae7b9c7..02e498c4b 100755 --- a/ops/npm-tag.sh +++ b/ops/npm-tag.sh @@ -7,7 +7,7 @@ node common/scripts/install-run-rush.js -q list || exit 1 # Then run real package discovery packages=$(node common/scripts/install-run-rush.js -q list --json \ - | jq '.projects[] | select(.versionPolicyName == "npm") | (.name + "@" + .version)' -r) + | jq '.projects[] | select(.versionPolicyName == "npm") | (.name + "@" + .version)' -r) || exit 1 for pkg in $packages; do npm dist-tag add "$pkg" "$tag" || exit 1