Skip to content

Commit d401df4

Browse files
nficanoclaude
andcommitted
ci: activate pnpm via corepack (action-setup installer fails on self-hosted)
pnpm/action-setup's installer fails on the containerized runner even in standalone mode (Cannot find module '../lib/cli.js'). corepack ships with node 22/24, which setup-node installs fine on arm64. Dropped the GitHub pnpm cache too — the runner image persists the pnpm store on a shared named volume at pnpm's default store path. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 615e599 commit d401df4

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,22 +49,21 @@ jobs:
4949
with:
5050
fetch-depth: 1
5151

52-
- name: Setup pnpm
53-
# pnpm/action-setup v4.0.0
54-
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v4.0.0
55-
with:
56-
version: 9.15.0
57-
run_install: false
58-
# The default installer needs a system node at install time, which
59-
# the containerized self-hosted runner doesn't have. The standalone
60-
# binary is dependency-free (linux-arm64 builds available).
61-
standalone: true
62-
6352
- name: Setup Node.js ${{ matrix.node }}
6453
uses: actions/setup-node@v6
6554
with:
6655
node-version: ${{ matrix.node }}
67-
cache: "pnpm"
56+
57+
# pnpm/action-setup's installer fails on the containerized self-hosted
58+
# runner (no system node at install time; standalone mode also broken).
59+
# corepack ships with node 22/24 and handles arm64 fine. The pnpm store
60+
# persists across jobs on a shared named volume at the default store
61+
# path, so no GitHub cache step is needed.
62+
- name: Setup pnpm (via corepack)
63+
run: |
64+
corepack enable
65+
corepack prepare pnpm@9.15.0 --activate
66+
pnpm --version
6867
6968
- name: Install dependencies
7069
run: pnpm install --frozen-lockfile

0 commit comments

Comments
 (0)