Skip to content

Commit 21883fc

Browse files
authored
chore: specify packageManager in package.json (#174)
This makes corepack automatically pick the correct version of pnpm to use. The pnpm GitHub action also supports this field.
1 parent 7ff01d0 commit 21883fc

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

.github/workflows/auto-fix.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ jobs:
1212
- uses: actions/checkout@v4
1313

1414
- uses: pnpm/action-setup@v2
15-
with:
16-
version: latest
1715

1816
- uses: actions/setup-node@v4
1917
with:

.github/workflows/test.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ jobs:
1515
- uses: actions/checkout@v2
1616

1717
- uses: pnpm/action-setup@v2
18-
with:
19-
version: latest
2018

2119
- name: Use Node.js ${{ matrix.node-version }}
2220
uses: actions/setup-node@v1

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"private": true,
3+
"packageManager": "pnpm@9.1.0-0+sha256.c557b24d2298d9b5e3be7086ebf55a28253b008324d545f72645a6de89844102",
34
"scripts": {
45
"build": "tsc -b",
56
"watch": "tsc -b -w",

0 commit comments

Comments
 (0)