Skip to content

Commit 3776371

Browse files
committed
CI Fix: Increase npm reliability and add caching to release workflow
1 parent 2fe3543 commit 3776371

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
uses: actions/setup-node@v4
3131
with:
3232
node-version: 20
33+
cache: 'npm'
34+
cache-dependency-path: './electron-app/package-lock.json'
3335

3436
- name: Set up Python
3537
uses: actions/setup-python@v5
@@ -40,7 +42,10 @@ jobs:
4042
- name: Install dependencies
4143
run: |
4244
cd electron-app
43-
npm install
45+
npm config set fetch-retries 10
46+
npm config set fetch-retry-mintimeout 20000
47+
npm config set fetch-retry-maxtimeout 120000
48+
npm ci --prefer-offline --no-audit
4449
4550
- name: Install Python dependencies
4651
run: |

0 commit comments

Comments
 (0)