Skip to content

Commit

Permalink
[pre-release] [0.0.53] debug CI
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyGura committed Dec 12, 2024
1 parent d958262 commit 8347f37
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions etc/publish_new_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ wait_package_publish() {
current_version=$(npm view "$package_name" version)
end_time=$(date +%s)
elapsed_time=$((end_time - start_time))
if [ "$current_version" = "$desired_version" ]; then
return
else
echo "$current_version != $desired_version"
fi
if [ $elapsed_time -ge $timeout_seconds ]; then
echo "NPM package was not fully published after 2 minutes"
exit 1
fi
if [ "$current_version" = "$desired_version" ]; then
return
fi
sleep 10
done
}
Expand Down

0 comments on commit 8347f37

Please sign in to comment.