Skip to content

Commit

Permalink
handle package discovery error in npm-tag.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
eldargab committed Jan 2, 2024
1 parent 351417f commit 40770b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ops/npm-tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 40770b4

Please sign in to comment.