Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions .github/actions/setup-pnpm/action.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: Setup pnpm workspace
description: >
Node + pnpm + cached store + frozen install of the repo-root pnpm workspace.
The CI container ships an older Node (~14) that pnpm/action-setup@v6 rejects
(`import.meta.resolve` requires >=20.6): install Node first, then pnpm
against that Node, then re-run setup-node to wire the pnpm-store cache
(which needs `pnpm store path` available).
Install Node first, then pnpm against that Node, then re-run setup-node to
wire the pnpm-store cache (which needs `pnpm store path` available).
pnpm/action-setup only installs a bootstrap pnpm and lets pnpm's own version
switcher fetch the version pinned in packageManager. That switcher crashes
with "Cannot use 'in' operator to search for 'integrity' in undefined" when
the target is pnpm 11.12.0, so keep the pin on a version it can install
(currently 11.11.0).

inputs:
node-version:
Expand All @@ -20,9 +23,7 @@ runs:
node-version: ${{ inputs.node-version }}

- name: Install pnpm
uses: pnpm/action-setup@8912a9102ac27614460f54aedde9e1e7f9aec20d # v6
with:
version: 11
uses: pnpm/action-setup@8912a9102ac27614460f54aedde9e1e7f9aec20d # v6.0.5

- name: Setup Node.js (with pnpm cache)
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
"e2e": "pnpm --filter web3-storage-papi-demo run e2e",
"demo": "pnpm --filter web3-storage-papi-demo run demo",
"typecheck:packages": "pnpm --filter './packages/*' --filter web3-storage-papi-demo run typecheck"
}
},
"packageManager": "pnpm@11.11.0+sha512.4463f65fd80ed80d69bc1d4bf163ee94f605c7380fc318bb5b2ebe15f8cd12d49c51a4d59e951b401e764d3b6ca751cbf51bc50ed7001a6bcb4935e684c34882"
}
Loading
Loading