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:
parent
7b162fe4ce
commit
d2f677b268
1 changed files with 9 additions and 2 deletions
11
.github/workflows/pipeline.yml
vendored
11
.github/workflows/pipeline.yml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue