Skip to content

Commit 1b1c2f8

Browse files
committed
fix: install pnpm before package manager detection
- Moved pnpm installation step before detect-package-manager - This fixes the cache error when setup-node tries to use pnpm cache - pnpm must be installed before setup-node can properly configure its cache
1 parent 1205473 commit 1b1c2f8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/nextjs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
steps:
3232
- name: Checkout
3333
uses: actions/checkout@v4
34+
- name: Install pnpm
35+
uses: pnpm/action-setup@v4
36+
with:
37+
version: 9
3438
- name: Detect package manager
3539
id: detect-package-manager
3640
run: |
@@ -48,10 +52,6 @@ jobs:
4852
echo "Unable to determine package manager"
4953
exit 1
5054
fi
51-
- name: Install pnpm
52-
uses: pnpm/action-setup@v4
53-
with:
54-
version: 9
5555
- name: Setup Node
5656
uses: actions/setup-node@v4
5757
with:

0 commit comments

Comments
 (0)