Skip to content

Commit d797385

Browse files
committed
fix(ci): pin pnpm to 11.7.0 to match action-setup bootstrap
action-setup@v6.0.9 bootstraps pnpm 11.7.0 then self-switches to the packageManager version; that switch crashes with 'Cannot use in operator to search for integrity in undefined'. Matching packageManager to 11.7.0 avoids the switch entirely.
1 parent bd3d9b3 commit d797385

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,10 @@ jobs:
123123
- name: Install pnpm
124124
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
125125
with:
126-
version: 11.12.0
127-
# install the exact version as a standalone binary (@pnpm/exe) instead of
128-
# letting the bundled bootstrap self-switch — that switch crashes with
129-
# "Cannot use 'in' operator to search for 'integrity' in undefined"
130-
standalone: true
126+
# match the version action-setup bootstraps so no self-switch happens;
127+
# the switch crashes with "Cannot use 'in' operator to search for
128+
# 'integrity' in undefined". Keep in sync with packageManager in package.json.
129+
version: 11.7.0
131130

132131
- name: Setup node
133132
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@
6666
"lint-staged": {
6767
"*": "oxfmt --no-error-on-unmatched-pattern"
6868
},
69-
"packageManager": "pnpm@11.12.0"
69+
"packageManager": "pnpm@11.7.0"
7070
}

0 commit comments

Comments
 (0)