fix(ci): retry npm install in pipeline to handle registry propagation delay (#2462)

Dev Publish can succeed but Test & Verify fails immediately after because
npm's CDN hasn't propagated the new version yet. Adds a retry loop (6
attempts, 10s apart) so the install survives propagation latency.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
TÂCHES 2026-03-25 08:44:40 -06:00 committed by GitHub
parent 7b162fe4ce
commit d2f677b268

View file

@ -81,8 +81,15 @@ jobs:
registry-url: https://registry.npmjs.org
cache: 'npm'
- name: Install gsd-pi@dev globally
run: npm install -g gsd-pi@dev
- name: Install gsd-pi@dev globally (with registry propagation retry)
run: |
for i in 1 2 3 4 5 6; do
npm install -g gsd-pi@dev && exit 0
echo "Attempt $i failed — waiting 10s for npm registry propagation..."
sleep 10
done
echo "Failed to install gsd-pi@dev after 6 attempts"
exit 1
- name: Run smoke tests (against installed binary)
run: |