🐛 fix(ci): 提升 Wails 前端依赖安装稳定性

- 启用 GitHub Actions npm 缓存
- 使用 package-lock 驱动前端依赖安装
- 增加 npm fetch 重试参数降低网络抖动影响
This commit is contained in:
Syngnat
2026-05-16 10:33:49 +08:00
parent 1dd1cb9e44
commit 959f32327d
3 changed files with 6 additions and 2 deletions

View File

@@ -92,6 +92,8 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install UPX (Windows)
if: contains(matrix.platform, 'windows')

View File

@@ -90,6 +90,8 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install UPX (Windows)
if: contains(matrix.platform, 'windows')

View File

@@ -1,7 +1,7 @@
{
"name": "GoNavi",
"outputfilename": "GoNavi",
"frontend:install": "npm install",
"frontend:install": "npm ci --prefer-offline --no-audit --fund=false --fetch-retries=5 --fetch-retry-mintimeout=20000 --fetch-retry-maxtimeout=120000",
"frontend:build": "npm run build",
"frontend:dev:watcher": "npm run dev",
"frontend:dev:serverUrl": "http://localhost:5173",
@@ -13,4 +13,4 @@
},
"debounceMS": 100,
"appargs": ""
}
}