Skip to content

chore(ci): align Yarn version for Cloudflare builds#3976

Merged
tangly1024 merged 1 commit intomainfrom
chore/cloudflare-yarn1-compat
Apr 30, 2026
Merged

chore(ci): align Yarn version for Cloudflare builds#3976
tangly1024 merged 1 commit intomainfrom
chore/cloudflare-yarn1-compat

Conversation

@tangly1024
Copy link
Copy Markdown
Owner

Summary

  • pin the project package manager to Yarn 1 to match the existing v1 lockfile
  • add Yarn config fallbacks to avoid immutable install failures in Cloudflare builds
  • keep yarn.lock out of this PR to limit scope to CI/build compatibility

Test plan

  • Confirm branch contains only package.json and .yarnrc.yml changes
  • Re-run Cloudflare build with yarn export
  • Verify install step no longer fails with YN0028

Made with Cursor

Pin the project to Yarn 1 and add a Yarn config fallback so Cloudflare installs no longer fail from immutable lockfile checks against the v1 lockfile.
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
notion-next-dos Ready Ready Preview, Comment Apr 30, 2026 3:03pm
notion-next-home Building Building Preview, Comment Apr 30, 2026 3:03pm
notion-next-preview Building Building Preview, Comment Apr 30, 2026 3:03pm

@tangly1024
Copy link
Copy Markdown
Owner Author

补充说明:本次 PR 有意不包含 yarn.lock 变更。

原因:当前目标是先修复 Cloudflare 构建环境中 Yarn 4 immutable install 与仓库 v1 lockfile 的兼容问题,尽量最小化变更范围、降低回归风险。

边界:

  • 本 PR 只处理包管理器/安装行为对齐(packageManager + .yarnrc.yml)。
  • yarn.lock 的统一升级/重写会作为后续独立变更处理,避免将依赖分辨率变化和 CI 兼容修复耦合在同一次评审里。

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.

2 participants