From bf79d5bad4373f94afdf635f0b078437a3c547f6 Mon Sep 17 00:00:00 2001 From: Xiaoyi Chen Date: Thu, 22 Jul 2021 10:47:01 -0700 Subject: [PATCH] fix: query registry for dist tags (#219) --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7ffa8f12..d35c31bb 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -78,7 +78,7 @@ commands: PKG_VERSION=$(cat package.json | jq -r .version) MAX_TRIES=300 TRIES=0 - until (( $(npm dist-tag ls $PKG_NAME | grep -c $PKG_VERSION ) )) || (($TRIES >= $MAX_TRIES )); do + until (( $(curl -s 'https://registry.npmjs.org/'$PKG_NAME | jq '.["dist-tags"]["latest"]' | grep -c $PKG_VERSION ) )) || (($TRIES >= $MAX_TRIES )); do printf '.' sleep 1 TRIES=$((TRIES+1))