Skip to content

Commit 158e2ef

Browse files
authored
Bump npm_config_fetch_retries to 5 in build workflows (#1725)
1 parent f7ad672 commit 158e2ef

7 files changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/build-android.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212

1313
env:
1414
NDK_VERSION: '28.2.13676358'
15+
# Absorb transient npm registry / CDN flakes during `npm install` in Apps/CMakeLists.txt.
16+
# npm's default fetch-retries is 2; bump to 5 (npm's own exponential backoff handles spacing).
17+
npm_config_fetch_retries: '5'
1518

1619
jobs:
1720
build:

.github/workflows/build-ios.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ on:
1515
type: string
1616
default: macos-latest
1717

18+
# Absorb transient npm registry / CDN flakes during `npm install` in Apps/CMakeLists.txt.
19+
# npm's default fetch-retries is 2; bump to 5 (npm's own exponential backoff handles spacing).
20+
env:
21+
npm_config_fetch_retries: '5'
22+
1823
jobs:
1924
build:
2025
runs-on: ${{ inputs.runs-on }}

.github/workflows/build-linux.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ on:
2020
env:
2121
UBSAN_OPTIONS: halt_on_error=1:print_stacktrace=1:symbolize=1
2222
ASAN_OPTIONS: abort_on_error=1
23+
# Absorb transient npm registry / CDN flakes during `npm install` in Apps/CMakeLists.txt.
24+
# npm's default fetch-retries is 2; bump to 5 (npm's own exponential backoff handles spacing).
25+
npm_config_fetch_retries: '5'
2326

2427
jobs:
2528
build:

.github/workflows/build-macos.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ on:
2323
env:
2424
UBSAN_OPTIONS: halt_on_error=1:print_stacktrace=1:symbolize=1
2525
ASAN_OPTIONS: abort_on_error=1
26+
# Absorb transient npm registry / CDN flakes during `npm install` in Apps/CMakeLists.txt.
27+
# npm's default fetch-retries is 2; bump to 5 (npm's own exponential backoff handles spacing).
28+
npm_config_fetch_retries: '5'
2629

2730
jobs:
2831
build:

.github/workflows/build-uwp.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
1111
type: string
1212
default: direct
1313

14+
# Absorb transient npm registry / CDN flakes during `npm install` in Apps/CMakeLists.txt.
15+
# npm's default fetch-retries is 2; bump to 5 (npm's own exponential backoff handles spacing).
16+
env:
17+
npm_config_fetch_retries: '5'
18+
1419
jobs:
1520
build:
1621
runs-on: windows-2022

.github/workflows/build-win32-shader.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
type: string
99
default: x64
1010

11+
# Absorb transient npm registry / CDN flakes during `npm install` in Apps/CMakeLists.txt.
12+
# npm's default fetch-retries is 2; bump to 5 (npm's own exponential backoff handles spacing).
13+
env:
14+
npm_config_fetch_retries: '5'
15+
1116
jobs:
1217
build:
1318
runs-on: windows-2022

.github/workflows/build-win32.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ on:
1919
type: boolean
2020
default: false
2121

22+
# Absorb transient npm registry / CDN flakes during `npm install` in Apps/CMakeLists.txt.
23+
# npm's default fetch-retries is 2; bump to 5 (npm's own exponential backoff handles spacing).
24+
env:
25+
npm_config_fetch_retries: '5'
26+
2227
jobs:
2328
build:
2429
runs-on: windows-2022

0 commit comments

Comments
 (0)