Skip to content

Commit e157cf4

Browse files
matmenclaude
andcommitted
bench: install the released version past npm's metadata cache
npm ci caches the versions of imagescript the registry had before the release, npm install used them for 5 minutes, longer than the retries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YJgRK5qpwJEbHPuFv6kgAQ
1 parent c398bac commit e157cf4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎.github/workflows/bench.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@ jobs:
3939
node-version: 24.x
4040

4141
- run: npm ci --no-audit --no-fund
42-
# a version that was just published can take a moment to show up on the registry
42+
# a version that was just published can take a moment to show up on the registry; npm ci cached the package's
43+
# versions from before, which --prefer-online skips
4344
- if: inputs.version != ''
4445
run: |
4546
for attempt in 1 2 3 4 5; do
46-
npm install --save-exact --no-audit --no-fund "imagescript@$VERSION" && exit 0
47+
npm install --save-exact --prefer-online --no-audit --no-fund "imagescript@$VERSION" && exit 0
4748
sleep 30
4849
done
4950
exit 1

0 commit comments

Comments
 (0)