Skip to content

Commit c866aa2

Browse files
author
Hermes Cron
committed
fix: npm install --ignore-scripts 避免 npm 10.8.2 竞态导致构建失败
1 parent cb3a67a commit c866aa2

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,7 @@ jobs:
2222
cache: 'npm'
2323

2424
- name: Install dependencies
25-
run: |
26-
echo "Node version: $(node -v)"
27-
echo "npm version: $(npm -v)"
28-
npm install
29-
echo "--- Verify vite installed ---"
30-
ls -la node_modules/.bin/vite
31-
node -e "console.log('vite version:', require('vite/package.json').version)"
25+
run: npm install --ignore-scripts
3226

3327
- name: Build
3428
run: npx vite build

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
cache: 'npm'
2222

2323
- name: Install dependencies
24-
run: npm ci
24+
run: npm install --ignore-scripts
2525

2626
- name: Build
2727
run: npm run build

0 commit comments

Comments
 (0)