Skip to content

Commit 667fb44

Browse files
committed
fix: Release CI — 配置 npm registry + --prefer-offline 加速安装
1 parent f76f172 commit 667fb44

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313

1414
env:
1515
CARGO_TERM_COLOR: always
16+
NPM_CONFIG_REGISTRY: https://registry.npmjs.org
1617

1718
jobs:
1819
# ── Frontend (web build – shared by all platforms) ───────────────────────────
@@ -27,7 +28,9 @@ jobs:
2728
node-version: '22'
2829

2930
- name: Install dependencies
30-
run: npm install --ignore-scripts
31+
run: |
32+
npm config set registry https://registry.npmjs.org
33+
npm install --prefer-offline --no-audit --loglevel=error
3134
3235
- name: Build web
3336
run: npm run build
@@ -69,7 +72,9 @@ jobs:
6972
node-version: '22'
7073

7174
- name: Install frontend dependencies
72-
run: npm install --ignore-scripts
75+
run: |
76+
npm config set registry https://registry.npmjs.org
77+
npm install --prefer-offline --no-audit --loglevel=error
7378
7479
- name: Download web build
7580
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)