Skip to content

Commit

Permalink
fix: query registry for dist tags (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoyi Chen authored Jul 22, 2021
1 parent e095fc7 commit bf79d5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit bf79d5b

Please sign in to comment.