CI 使用 npmmirror 与 npm 缓存提速 #23

Closed
opened 2026-10-19 10:43:19 +08:00 by Lijianping · 0 comments
Collaborator

目标

缩短 frontend Forgejo Actions 中 npm ci 耗时,避免长时间无日志、像卡住。目标仓:frontend

范围

  • frontend:.forgejo/workflows/ci.yml
  • (可选).npmrc 仅若需要与 CI 对齐

不做

  • 不改业务 src/
  • 不改 backend / app / txys-*
  • 不合并未完成的 #22 样式 PR 内容

验收

  • CI 使用 npmmirror(或等价国内源)
  • 启用 actions/cache 缓存 npm
  • 新 PR 的 npm ci 明显快于裸装(首次有缓存后更稳)
  • npm run build 仍通过
  • 文档影响:无(或仅工作流说明)

相关文档

  • 工作区 docs/AI单人开发工作流.md
  • 对照 app/.forgejo/workflows/ci.yml 已有做法
## 目标 缩短 frontend Forgejo Actions 中 `npm ci` 耗时,避免长时间无日志、像卡住。目标仓:frontend ## 范围 - frontend:`.forgejo/workflows/ci.yml` - (可选)`.npmrc` 仅若需要与 CI 对齐 ## 不做 - 不改业务 `src/` - 不改 backend / app / txys-* - 不合并未完成的 #22 样式 PR 内容 ## 验收 - [ ] CI 使用 npmmirror(或等价国内源) - [ ] 启用 `actions/cache` 缓存 npm - [ ] 新 PR 的 `npm ci` 明显快于裸装(首次有缓存后更稳) - [ ] `npm run build` 仍通过 - [ ] 文档影响:无(或仅工作流说明) ## 相关文档 - 工作区 `docs/AI单人开发工作流.md` - 对照 `app/.forgejo/workflows/ci.yml` 已有做法
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jiaoce/xm_txys2_front#23
No description provided.