AAE-51793 Log attempt number around npm pack retries (#12236)

This commit is contained in:
Domenico Sibilio
2026-09-14 12:12:05 +00:00
committed by GitHub
parent 2c1405d053
commit a776cd02c0
@@ -42,10 +42,12 @@ npm_pack_version() {
local spec=$1
local attempt
for attempt in $(seq 1 "$NPM_RETRIES"); do
echo "📦 npm pack attempt $attempt/$NPM_RETRIES: $spec"
if npm pack "$spec"; then
return 0
fi
if [ "$attempt" -lt "$NPM_RETRIES" ]; then
echo "⏳ Attempt $attempt/$NPM_RETRIES failed, retrying in ${NPM_RETRY_DELAY}s..."
sleep "$NPM_RETRY_DELAY"
fi
done