From d2f677b268b0fc4a979dcc5387b7d682d8c5423b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=82CHES?= Date: Wed, 25 Mar 2026 08:44:40 -0600 Subject: [PATCH] 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) --- .github/workflows/pipeline.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 99dbb6cf8..f2925fd11 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -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: |