🐛 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')