Commit ac2da68
perlinson
🔧 fix: 修复 GitHub Pages 缓存配置问题
✨ 修复内容:
- 更换缓存配置方式,使用 actions/cache@v3
- 移除有问题的 cache-dependency-path 配置
- 使用更稳定的缓存键名和恢复键
🔧 技术细节:
- 缓存 ~/.npm 目录而不是特定路径
- 使用 hashFiles('**/package-lock.json') 生成缓存键
- 添加 restore-keys 提供缓存回退
🎯 解决问题:
- 修复 'Some specified paths were not resolved' 错误
- 确保依赖缓存正常工作
- 提升构建速度和稳定性1 parent 7d3ad6f commit ac2da68
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
35 | 41 | | |
36 | 42 | | |
37 | 43 | | |
| |||
0 commit comments