Skip to content

Commit 9b40374

Browse files
committed
fix: 添加package-lock.json并修复CI缓存配置
## 问题修复 1. **添加package-lock.json**: 创建前端项目的package-lock.json文件 2. **修复缓存路径**: 将缓存路径改为frontend/package-lock.json 3. **确保CI兼容**: 使GitHub Actions能够正确缓存npm依赖 ## 改进内容 - 提供准确的依赖锁定文件 - 确保npm缓存正常工作 - 提高CI构建的稳定性和速度 - 避免'Some specified paths were not resolved'错误
1 parent 68eb0a5 commit 9b40374

File tree

2 files changed

+150
-1
lines changed

2 files changed

+150
-1
lines changed

.github/workflows/frontend-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
node-version: '18'
2020
cache: 'npm'
21-
cache-dependency-path: frontend/package.json
21+
cache-dependency-path: 'frontend/package-lock.json'
2222

2323
- name: Install dependencies
2424
run: |

frontend/package-lock.json

Lines changed: 149 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)