Skip to content

Commit 4e38ddb

Browse files
committed
Support corepack's packageManager field
For users that have [corepack](https://nodejs.org/api/corepack.html) enabled, this will auto-install the version of pnpm that we expect. The Github action will respect this field as well, so we have a single source of truth.
1 parent 788cd18 commit 4e38ddb

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/actions/setup/action.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,8 @@ runs:
1616
run: echo "auto-install-peers=false" > .npmrc
1717
if: inputs.use_pinned_node == 'false'
1818
shell: bash
19-
- uses: pnpm/action-setup@v3
19+
- uses: pnpm/action-setup@v4
2020
name: Install pnpm
21-
with:
22-
version: 8
23-
run_install: false
2421
- uses: actions/setup-node@v4
2522
with:
2623
node-version: 16

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,6 @@
6969
"unlabeled": ":question: Unlabeled"
7070
},
7171
"wildcardLabel": "unlabeled"
72-
}
73-
}
72+
},
73+
"packageManager": "pnpm@8.15.8+sha256.691fe176eea9a8a80df20e4976f3dfb44a04841ceb885638fe2a26174f81e65e"
74+
}

0 commit comments

Comments
 (0)