Skip to content

Commit dc48575

Browse files
🔧 更新GitHub Actions工作流,升级Node.js版本并调整依赖安装方式
- 将Node.js版本从18升级至20,以支持最新功能。 - 修改npm安装命令,添加`--legacy-peer-deps`选项,以解决依赖冲突问题。
1 parent b723137 commit dc48575

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/update.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
- uses: actions/checkout@v3
1010
- uses: actions/setup-node@v3
1111
with:
12-
node-version: 18
12+
node-version: 20
1313
- run: |
14-
npm install
14+
npm install --legacy-peer-deps
1515
npm run build
1616
- uses: peaceiris/actions-gh-pages@v3
1717
if: github.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)