Skip to content

Commit 7db4730

Browse files
Merge pull request #7 from techboy-coder/dev
maybe pnpm will work now?
2 parents a963774 + dc4d6fc commit 7db4730

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/nextjs.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,14 @@ jobs:
4040
echo "runner=yarn" >> $GITHUB_OUTPUT
4141
exit 0
4242
elif [ -f "${{ github.workspace }}/package.json" ]; then
43-
echo "manager=pnpm" >> $GITHUB_OUTPUT
43+
echo "manager=npm" >> $GITHUB_OUTPUT
4444
echo "command=ci" >> $GITHUB_OUTPUT
45-
echo "runner=pnpx --no-install" >> $GITHUB_OUTPUT
45+
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
46+
exit 0
47+
elif [ -f "${{ github.workspace }}/pnpm-lock.yaml" ]; then
48+
echo "manager=pnpm" >> $GITHUB_OUTPUT
49+
echo "command=install" >> $GITHUB_OUTPUT
50+
echo "runner=pnpm" >> $GITHUB_OUTPUT
4651
exit 0
4752
else
4853
echo "Unable to determine package manager"

0 commit comments

Comments
 (0)