From e7d787e4939ebd6655ac315a24d495e5b0265bda Mon Sep 17 00:00:00 2001 From: Charlie Lye <5764343+charlielye@users.noreply.github.com> Date: Sat, 19 Apr 2025 11:17:09 +0000 Subject: [PATCH] fix: retry deploy npm --- barretenberg/ts/bootstrap.sh | 2 +- noir/bootstrap.sh | 2 +- yarn-project/bootstrap.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/barretenberg/ts/bootstrap.sh b/barretenberg/ts/bootstrap.sh index c2afaed86b8f..2ce68d31d075 100755 --- a/barretenberg/ts/bootstrap.sh +++ b/barretenberg/ts/bootstrap.sh @@ -41,7 +41,7 @@ function test { } function release { - deploy_npm $(dist_tag) ${REF_NAME#v} + retry "deploy_npm $(dist_tag) ${REF_NAME#v}" } case "$cmd" in diff --git a/noir/bootstrap.sh b/noir/bootstrap.sh index cfc61060cf7e..82579755c5fa 100755 --- a/noir/bootstrap.sh +++ b/noir/bootstrap.sh @@ -203,7 +203,7 @@ function release { jq --arg v $version '.version = $v' package.json >tmp.json mv tmp.json package.json - deploy_npm $dist_tag $version + retry "deploy_npm $dist_tag $version" cd .. done } diff --git a/yarn-project/bootstrap.sh b/yarn-project/bootstrap.sh index 142af2137cba..c48bf3a1820a 100755 --- a/yarn-project/bootstrap.sh +++ b/yarn-project/bootstrap.sh @@ -150,7 +150,7 @@ function release_packages { local packages=$(get_projects topological) local package_list=() for package in $packages; do - (cd $package && deploy_npm $1 $2) + (cd $package && retry "deploy_npm $1 $2") local package_name=$(jq -r .name "$package/package.json") package_list+=("$package_name@$2") done