Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Do not fail jq dependencies check for package with no deps #3894

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion build-system/scripts/deploy_npm
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jq --arg v $VERSION '.version = $v' package.json >$TMP && mv $TMP package.json

if [ -z "$STANDALONE" ]; then
# Update each dependent @aztec package version in package.json.
for PKG in $(jq --raw-output ".dependencies | keys[] | select(contains(\"@aztec/\"))" package.json); do
for PKG in $(jq --raw-output ".dependencies | try keys[] | select(contains(\"@aztec/\"))" package.json); do
jq --arg v $VERSION ".dependencies[\"$PKG\"] = \$v" package.json >$TMP && mv $TMP package.json
done
fi
Expand All @@ -62,9 +62,11 @@ else
# Check if version exists
if npm view "$PACKAGE_NAME@$VERSION" version >/dev/null 2>&1; then
# Tag the existing version
echo "Tagging existing version $VERSION with $TAG"
npm dist-tag add $PACKAGE_NAME@$VERSION $TAG
else
# Publish new version
echo "Publishing new version $VERSION with $TAG"
npm publish $TAG_ARG --access public
fi
fi