Skip to content

Commit 141ec6e

Browse files
authored
Merge branch 'main' into jacek/user-4607-do-not-await-nonce-in-the-clerkprovider
2 parents 1f9d256 + 332e020 commit 141ec6e

1 file changed

Lines changed: 24 additions & 2 deletions

File tree

.github/actions/verdaccio/action.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,30 @@ runs:
6969
sleep 2
7070
done
7171
pnpm config set $(echo ${{ inputs.registry }} | sed -E 's/https?://')/:_authToken secretToken
72-
# Verify proxy is working by trying to fetch a known package
73-
pnpm view semver > /dev/null 2>&1 || echo "Warning: Could not fetch semver package, proxy might not be working"
72+
73+
# Verify proxy is working by testing multiple packages with retries
74+
# These packages are known transitive dependencies that have caused CI failures
75+
test_packages=("semver" "browserslist" "update-browserslist-db")
76+
max_retries=3
77+
retry_delay=2
78+
79+
for pkg in "${test_packages[@]}"; do
80+
echo "Verifying proxy can fetch: $pkg"
81+
for attempt in $(seq 1 $max_retries); do
82+
if pnpm view "$pkg" version > /dev/null 2>&1; then
83+
echo "✓ Successfully fetched $pkg"
84+
break
85+
fi
86+
if [ $attempt -eq $max_retries ]; then
87+
echo "✗ Failed to fetch $pkg after $max_retries attempts"
88+
echo "Proxy verification failed - this may cause integration test failures"
89+
exit 1
90+
fi
91+
echo " Attempt $attempt failed, retrying in ${retry_delay}s..."
92+
sleep $retry_delay
93+
done
94+
done
95+
echo "Proxy verification complete - all test packages accessible"
7496
7597
- name: Print published Clerk package versions
7698
shell: bash

0 commit comments

Comments
 (0)