Skip to content

perf: 彻底跳过 publish/deploy-cf 命中缓存时的冗余 npm install - #56

Merged
hefy2027 merged 5 commits into
masterfrom
develop
Sep 4, 2026
Merged

perf: 彻底跳过 publish/deploy-cf 命中缓存时的冗余 npm install#56
hefy2027 merged 5 commits into
masterfrom
develop

Conversation

@hefy2027

@hefy2027 hefy2027 commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Publish / Deploy 工作流:在 \publish.yml\ 和 \deploy-cf/action.yml\ 中添加 \if: steps.cache-worker.outputs.cache-hit != 'true'\,命中缓存时直接 0 秒跳过 Worker 依赖安装。
  • build.js 脚本优化:判断 \ rontend/node_modules\ 存在即跳过前端的
    pm install\,直接进入 Vite 构建。

Test Plan

  • 验证本地与 Actions 构建流程一致性。

@hefy2027
hefy2027 merged commit d863071 into master Sep 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant