Skip to content

Commit 9bbe38b

Browse files
authored
Update nextjs.yml
add detect package manger for pnpm
1 parent 55052d8 commit 9bbe38b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/nextjs.yml

+5
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ jobs:
4444
echo "command=ci" >> $GITHUB_OUTPUT
4545
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
4646
exit 0
47+
elif [ -f "${{ github.workspace }}/pnpm-lock.yaml" ]; then
48+
echo "manager=pnpm" >> $GITHUB_OUTPUT
49+
echo "command=install --frozen-lockfile" >> $GITHUB_OUTPUT
50+
echo "runner=pnpm" >> $GITHUB_OUTPUT
51+
exit 0
4752
else
4853
echo "Unable to determine package manager"
4954
exit 1

0 commit comments

Comments
 (0)