Skip to content

Commit 45a0953

Browse files
author
Hermes Cron
committed
fix: 使用 npx --yes vite build 确保 vite 在线下载(避免 bin 链接丢失)
1 parent 1839cb7 commit 45a0953

2 files changed

Lines changed: 4 additions & 10 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,11 @@ jobs:
2020
with:
2121
node-version: 20
2222

23-
- name: Clear npm cache
24-
run: npm cache clean --force
25-
2623
- name: Install dependencies
27-
run: npm install --ignore-scripts
24+
run: npm install
2825

2926
- name: Build
30-
run: ./node_modules/.bin/vite build
27+
run: npx --yes vite build
3128
env:
3229
VITE_GITHUB_CLIENT_ID: ${{ secrets.VITE_GITHUB_CLIENT_ID }}
3330

.github/workflows/release.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,11 @@ jobs:
1919
with:
2020
node-version: '20'
2121

22-
- name: Clear npm cache
23-
run: npm cache clean --force
24-
2522
- name: Install dependencies
26-
run: npm install --ignore-scripts
23+
run: npm install
2724

2825
- name: Build
29-
run: ./node_modules/.bin/vite build
26+
run: npx --yes vite build
3027

3128
- name: Create ZIP archive
3229
run: |

0 commit comments

Comments
 (0)