Skip to content

Commit 0545ef7

Browse files
committed
fix(workflows): remove pnpm version from ci.yml
Remove explicit pnpm version specification from pnpm-action-setup. The action automatically reads the version from the packageManager field in package.json. Specifying both causes ERR_PNPM_BAD_PM_VERSION.
1 parent 3478168 commit 0545ef7

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ jobs:
3030
- name: Setup pnpm
3131
uses: pnpm/action-setup@9fd676a19091d4595eefd76e4bd31c97133911f1 # v4.2.0
3232
with:
33-
version: 10
33+
# NOTE: Do not specify 'version' here - pnpm-action-setup automatically reads
34+
# the version from the 'packageManager' field in package.json. Specifying both
35+
# causes ERR_PNPM_BAD_PM_VERSION errors.
3436

3537
- name: Setup Node.js
3638
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
@@ -56,7 +58,9 @@ jobs:
5658
- name: Setup pnpm
5759
uses: pnpm/action-setup@9fd676a19091d4595eefd76e4bd31c97133911f1 # v4.2.0
5860
with:
59-
version: 10
61+
# NOTE: Do not specify 'version' here - pnpm-action-setup automatically reads
62+
# the version from the 'packageManager' field in package.json. Specifying both
63+
# causes ERR_PNPM_BAD_PM_VERSION errors.
6064

6165
- name: Setup Node.js
6266
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
@@ -88,7 +92,9 @@ jobs:
8892
- name: Setup pnpm
8993
uses: pnpm/action-setup@9fd676a19091d4595eefd76e4bd31c97133911f1 # v4.2.0
9094
with:
91-
version: 10
95+
# NOTE: Do not specify 'version' here - pnpm-action-setup automatically reads
96+
# the version from the 'packageManager' field in package.json. Specifying both
97+
# causes ERR_PNPM_BAD_PM_VERSION errors.
9298

9399
- name: Setup Node.js
94100
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
@@ -118,7 +124,9 @@ jobs:
118124
- name: Setup pnpm
119125
uses: pnpm/action-setup@9fd676a19091d4595eefd76e4bd31c97133911f1 # v4.2.0
120126
with:
121-
version: 10
127+
# NOTE: Do not specify 'version' here - pnpm-action-setup automatically reads
128+
# the version from the 'packageManager' field in package.json. Specifying both
129+
# causes ERR_PNPM_BAD_PM_VERSION errors.
122130

123131
- name: Setup Node.js
124132
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
@@ -148,7 +156,9 @@ jobs:
148156
- name: Setup pnpm
149157
uses: pnpm/action-setup@9fd676a19091d4595eefd76e4bd31c97133911f1 # v4.2.0
150158
with:
151-
version: 10
159+
# NOTE: Do not specify 'version' here - pnpm-action-setup automatically reads
160+
# the version from the 'packageManager' field in package.json. Specifying both
161+
# causes ERR_PNPM_BAD_PM_VERSION errors.
152162

153163
- name: Setup Node.js
154164
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0

0 commit comments

Comments
 (0)