From 92f7ea483d63600e7ffd8a5972cabdddb751e6b4 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 14 Aug 2026 21:17:30 +0000 Subject: [PATCH 1/2] Enable pnpm before the first local or CI command. Stock Node 22/24 ships Corepack without a pnpm shim, and setup-node cache: pnpm needs pnpm on PATH before it runs. Document corepack enable in the README and SHA-pin pnpm/action-setup ahead of setup-node. Co-authored-by: Fly Over Coder --- .github/workflows/ci.yml | 2 +- .github/workflows/deploy.yml | 2 +- README.md | 13 +++++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b044128..0d4cfd5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - - run: corepack enable + - uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10 - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 with: node-version: 22 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5139c5c..28e714a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - - run: corepack enable + - uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10 - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 with: node-version: 22 diff --git a/README.md b/README.md index b230da1..f4f599a 100644 --- a/README.md +++ b/README.md @@ -28,9 +28,22 @@ retiregolden.org, runs the stack on Azure). until their first exact public versions can replace the release boundary in `worker/src/identity-runtime.ts`. +## Local development + +Stock Node 22/24 ships Corepack but not a `pnpm` shim. + +```sh +corepack enable +pnpm install --frozen-lockfile +pnpm run check +pnpm test +pnpm run build +``` + ## Worker logging ```sh +corepack enable pnpm install --frozen-lockfile pnpm run worker:deploy # optional Datadog arm: From 94daeb361ae6659403ce588108128731bdf95f1f Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 14 Aug 2026 22:58:55 +0000 Subject: [PATCH 2/2] Document Corepack install for Node 25+ before enable. Official Node 25+ no longer bundles Corepack, so the first local command cannot be corepack enable alone. Install Corepack with npm first; CI stays on Node 22 via SHA-pinned pnpm/action-setup. Co-authored-by: Fly Over Coder --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f4f599a..37e848d 100644 --- a/README.md +++ b/README.md @@ -30,9 +30,11 @@ retiregolden.org, runs the stack on Azure). ## Local development -Stock Node 22/24 ships Corepack but not a `pnpm` shim. +Stock Node 22/24 ships Corepack but not a `pnpm` shim. Node 25+ does +not bundle Corepack; install it first. ```sh +npm install -g corepack corepack enable pnpm install --frozen-lockfile pnpm run check @@ -43,6 +45,7 @@ pnpm run build ## Worker logging ```sh +npm install -g corepack corepack enable pnpm install --frozen-lockfile pnpm run worker:deploy