From 7214a115151961b01416bbe224ed1f27c86bf8fd Mon Sep 17 00:00:00 2001 From: htjulia Date: Mon, 2 Nov 2026 09:20:13 +0900 Subject: [PATCH] fix(ci): install pnpm without corepack in the browser jobs The browser jobs in ci.yml and release.yml started failing at their first step with "corepack: not found". The playwright:v1.64.1-noble tag was re-published (digest sha256:2f05f8a7...) and now ships Node 26.13.0, and Node stopped bundling corepack in 25. Nothing in the repo changed; any pull request or release run hits it. npm install -g corepack is not a way back: its yarn shims collide with the yarn the image already installs (EEXIST /usr/bin/yarnpkg). So the two container jobs install pnpm 11.1.3 from npm directly, the same pinned version. The other jobs run setup-node 22, which still bundles corepack, and keep it. Tags: #ci Co-Authored-By: htjulia --- .github/workflows/ci.yml | 10 ++++++---- .github/workflows/release.yml | 7 +++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 70ef347..a5fcfd5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -108,10 +108,12 @@ jobs: HOME: /root steps: - uses: actions/checkout@v7 - - name: enable pnpm - run: | - corepack enable - corepack prepare pnpm@11.1.3 --activate + - name: install pnpm + # Not corepack, unlike the other jobs: the image re-published under this tag + # carries Node 26, which no longer bundles corepack ("corepack: not found"), + # and `npm install -g corepack` collides with the image's own yarn binaries. + # The other jobs run setup-node 22, which still has it. Same pinned version. + run: npm install -g pnpm@11.1.3 - run: pnpm install --frozen-lockfile - run: pnpm test:browser diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bf1c665..9a672d1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -127,10 +127,9 @@ jobs: HOME: /root steps: - uses: actions/checkout@v7 - - name: enable pnpm - run: | - corepack enable - corepack prepare pnpm@11.1.3 --activate + - name: install pnpm + # See the same step in ci.yml: this image's Node no longer bundles corepack. + run: npm install -g pnpm@11.1.3 - run: pnpm install --frozen-lockfile - run: pnpm test:browser