Skip to content

Commit 265e75e

Browse files
committed
fix: install dependencies
1 parent a05b452 commit 265e75e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
- uses: actions/checkout@v4
1616
- uses: actions/setup-node@v4
1717
with:
18-
node-version: 18
18+
node-version: 20.19
1919

2020
- name: Install dependencies
21-
run: npm install
21+
run: npm install --force
2222

2323
- name: Build Next.js
2424
run: npm run build

deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ git -C $BASE_DIR pull origin main
2121
echo "📦 构建前端到临时目录..."
2222
cp -r $BASE_DIR $TMP_DIR/frontend
2323
cd $TMP_DIR/frontend
24-
npm install
24+
npm install --force
2525
npm run build
2626

2727
echo "🚀 同步前端到生产目录..."

0 commit comments

Comments
 (0)