Skip to content

Commit edb11d5

Browse files
committed
fix: use pnpm version from package.json packageManager field
Remove hardcoded pnpm version 8 from workflows and let pnpm/action-setup automatically detect the version from package.json packageManager field (pnpm@10.25.0). This fixes the 'not compatible lockfile' error that was occurring because the lockfile was generated with pnpm 10 but the workflow was using pnpm 8.
1 parent 714f436 commit edb11d5

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ jobs:
2424

2525
- name: Setup pnpm
2626
uses: pnpm/action-setup@eae0cfeb286e66ffb5155f1a79b90583a127a68b # v2.4.1
27-
with:
28-
version: 8
27+
# Version is automatically read from package.json packageManager field
2928

3029
- name: Get pnpm store directory
3130
id: pnpm-cache

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ jobs:
3131

3232
- name: Setup pnpm
3333
uses: pnpm/action-setup@eae0cfeb286e66ffb5155f1a79b90583a127a68b # v2.4.1
34-
with:
35-
version: 8
34+
# Version is automatically read from package.json packageManager field
3635

3736
- name: Install dependencies
3837
run: pnpm install --frozen-lockfile

0 commit comments

Comments
 (0)