Skip to content

Commit f1a75f5

Browse files
committed
ci: install pnpm as standalone binary
pnpm/action-setup runs before setup-node (the node pnpm cache needs pnpm on the PATH) and installed pnpm 11 with the runner's default Node 20, which pnpm 11 no longer supports (>= 22.13). The standalone binary bundles its own Node and is independent of the runner default.
1 parent 43db467 commit f1a75f5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v5
13+
# standalone: pnpm 11 requires Node >= 22.13, but this step runs before
14+
# setup-node (its pnpm cache needs pnpm on the PATH) and would otherwise
15+
# install pnpm with the runner's older default Node.
1316
- uses: pnpm/action-setup@v4
17+
with:
18+
standalone: true
1419
- uses: actions/setup-node@v5
1520
with:
1621
node-version: 24

0 commit comments

Comments
 (0)