ci: 预热 Prisma 并移除运行时 Node 下载 #7

Merged
que01 merged 1 commits from ci/avoid-runtime-downloads into main 2026-10-23 09:41:34 +00:00
Owner

问题

main 流水线 run 39 中 static job 卡在 actions/setup-node 下载 nodejs.org tarball,API integration 的 prisma generate 因 binaries.prisma.sh ECONNRESET 失败。两者都是运行时外部下载导致的 CI 不稳定。

变更

  • workflow 移除 actions/setup-node 与 pnpm/action-setup,改为校验镜像内置 Node 24 / pnpm 9.15.0
  • runner 镜像构建时预热 Prisma engines 到 /root/.cache/prisma
  • workflow 增加 ~/.cache/prisma 的 actions/cache 兜底
  • 文档补充工具链与 Prisma 版本同步要求

验证

  • 重新构建 personal-brand-ci:node24,镜像内确认 Node v24.22.1、pnpm 9.15.0、Prisma cache 68MB
  • pnpm format:check、pnpm lint、git diff --check 通过
## 问题 main 流水线 run 39 中 static job 卡在 `actions/setup-node` 下载 nodejs.org tarball,API integration 的 `prisma generate` 因 `binaries.prisma.sh` ECONNRESET 失败。两者都是运行时外部下载导致的 CI 不稳定。 ## 变更 - workflow 移除 `actions/setup-node` 与 `pnpm/action-setup`,改为校验镜像内置 Node 24 / pnpm 9.15.0 - runner 镜像构建时预热 Prisma engines 到 `/root/.cache/prisma` - workflow 增加 `~/.cache/prisma` 的 actions/cache 兜底 - 文档补充工具链与 Prisma 版本同步要求 ## 验证 - 重新构建 `personal-brand-ci:node24`,镜像内确认 Node v24.22.1、pnpm 9.15.0、Prisma cache 68MB - `pnpm format:check`、`pnpm lint`、`git diff --check` 通过
que01 added 1 commit 2026-10-23 09:38:12 +00:00
ci: 预热 Prisma 并移除运行时 Node 下载
CI / Static checks (pull_request) Successful in 1m1s
CI / API integration (pull_request) Successful in 1m26s
CI / Production build (pull_request) Successful in 1m45s
CI / Browser smoke (pull_request) Successful in 50s
447c224fce
que01 merged commit 072a1037ac into main 2026-10-23 09:41:34 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: que01/persionalBrand#7