Skip to content

build: move cloud/ and docs/site/ to pnpm 12.14.0 - #30600

Merged
nwparker merged 1 commit into
mainfrom
nwparker/pnpm-12-subworkspaces
Oct 19, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/pnpm-12-subworkspaces

Conversation

@nwparker

@nwparker nwparker commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 0
Prod 23 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​410 $\color{#cf222e}{\Huge{\mathbf{−}}}$​87 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​323

ELI5

cloud/ and docs/site/ were the last workspaces still on pnpm 10.34.6. The root moved to pnpm 12 (now 12.14.0) and these two were never moved with it. Every developer and CI job therefore keeps a second pnpm and a second package store around just for them. This moves both to the root's pnpm 12.14.0.

What Changed

  • Version pins: both packageManager fields now match the root's exact pnpm@12.14.0+sha512… value.
  • Lockfiles: both are regenerated with pnpm 12. The only change is the new header block; no existing lockfile line was removed, so no dependency resolves differently.
  • cloud/:
    • The .npmrc setting moves into pnpm-workspace.yaml as engineStrict: false.
    • package-manager-strict is dropped, because pnpm 12 rejects it as an unknown setting and now enforces the pinned version itself.
    • allowBuilds: esbuild: false keeps pnpm 10's behaviour of skipping esbuild's build script. pnpm 12 fails the install on any build script that isn't approved.
    • engines.pnpm is now >=12.
  • docs/site/:
    • minimum-release-age and the package.json#pnpm overrides move into a new pnpm-workspace.yaml.
    • onlyBuiltDependencies becomes allowBuilds (esbuild and sharp both allowed).
    • --ignore-workspace is removed from docs.yml, the README, and the new vercel.json install command. Under pnpm 12 that flag skips the workspace file and its overrides, so frozen installs fail. The site's own pnpm-workspace.yaml already makes it a separate workspace root.
    • The docs-package test now checks for 12.14.0.
  • CI:
    • 13 setup steps across 11 workflows (cloud verify, deploy, monitor, operate and prove, plus docs) move from pnpm/action-setup to pnpm/setup@v2 with package-json-file, the same as the root.
    • The unit-tests.yml relay step uses the root's pnpm instead of npx pnpm@10.34.6.
  • docs/site/vercel.json now sets the install and build commands. They take precedence over the old dashboard install command, which still carried --ignore-workspace.

Why

Nothing technical kept these on pnpm 10. #17156 only moved the root and mobile/, and #24561 only bumped 10.24.0 to 10.34.6. Running one pnpm everywhere means one store and one set of settings semantics. It also avoids the pnpm 10 → 12 switch failure on machines with an older global pnpm.

Linked Issue

N/A (maintainer).

Visual Proof

N/A: tooling only.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

cloud/ (Node 24):

  • Clean CI=true frozen install, pnpm build, pnpm typecheck and pnpm test pass. Postgres-backed tests are skipped locally.
  • The CI relay steps pass: --filter '@orca-cloud/relay...' install --frozen-lockfile --ignore-scripts, then the ^... build.
  • The relay Dockerfile flow passes, simulated with corepack 0.35 from an empty cache: build-stage frozen install, package builds, then the --prod runtime install.

docs/site/ (Node 22):

  • Every docs.yml step passes: frozen install, tests (16/16), lint, tsc and next build.
  • vercel build --prod passes. With a project whose saved settings held the old commands, vercel.json's commands won.

Bootstrap with empty caches:

  • npx --yes pnpm@12.14.0 works.
  • corepack 0.34.5 and later works with the full hash.
  • pnpm 12's fallback launcher downloads the native binary, including musl.

Root: 75 config/scripts test files that read workflows, lockfiles or packageManager pass (1,730 tests). The changed-code gate, oxfmt and actionlint are clean.

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Deploy-path risks:

  • corepack version in the cloud Dockerfiles. corepack 0.34.4 and earlier crash on pnpm 12 with "Cannot find module …/bin/pnpm.cjs". The Dockerfiles use floating node:24-* tags, which currently ship corepack 0.35.0. Pinning an older Node 24 image would break them. The root headless-pairing Dockerfile already has the same dependency.
  • Relay production evidence goes stale. relay-evidence-code-provenance.mjs covers cloud/package.json, the lockfile, the workspace file and the operate workflows. After merge, evidence sealed before it is rejected, so operators must re-run the production monitor before the next rehome or same-cap step. This fails safe.
  • Untested here: the dispatch-only production workflows. Their only change is the setup step, which is the same one cloud-verify uses, and cloud-verify runs on this PR.
  • Vercel dashboard settings couldn't be inspected without credentials. vercel.json now overrides them.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

The root moved to pnpm 12 in #17156 but these two isolated workspaces were
left on pnpm 10, so CI and deploys carried a second pnpm and pnpm/action-setup.

- Pin the root's integrity-checked pnpm 12.14.0 and regenerate both
  lockfiles (only the pnpm 12 package-manager document is added; the
  dependency graph is unchanged).
- Move settings pnpm 12 ignores out of .npmrc and package.json#pnpm into
  each pnpm-workspace.yaml; onlyBuiltDependencies becomes allowBuilds, and
  cloud keeps esbuild's script skipped as pnpm 10 did. package-manager-strict
  is gone in pnpm 12, whose own version pinning supersedes it.
- docs/site drops --ignore-workspace: under pnpm 12 it skips the workspace
  file, losing the overrides and failing the frozen install. vercel.json now
  pins install/build so a stale dashboard command cannot reintroduce it.
- Cloud and docs workflows use pnpm/setup@v2 like the root; the relay
  unit-test step uses the root's pnpm instead of npx pnpm@10.
@nwparker
nwparker requested a review from Jinwoo-H as a code owner October 19, 2026 06:40
@nwparker
nwparker merged commit b331710 into main Oct 19, 2026
32 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