Skip to content

Commit 8f6e536

Browse files
committed
add pnpm to github actions
1 parent 0f9a8c5 commit 8f6e536

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ jobs:
2626
steps:
2727
- name: Checkout
2828
uses: actions/checkout@v4
29+
30+
- name: Install Pnpm
31+
uses: pnpm/action-setup@v4
32+
with:
33+
version: 9
34+
2935
- name: Detect package manager
3036
id: detect-package-manager
3137
run: |
@@ -34,6 +40,11 @@ jobs:
3440
echo "command=install" >> $GITHUB_OUTPUT
3541
echo "runner=yarn" >> $GITHUB_OUTPUT
3642
exit 0
43+
elif [ -f "${{ github.workspace }}/pnpm-lock.yaml" ]; then
44+
echo "manager=pnpm" >> $GITHUB_OUTPUT
45+
echo "command=install" >> $GITHUB_OUTPUT
46+
echo "runner=pnpm dlx" >> $GITHUB_OUTPUT
47+
exit 0
3748
elif [ -f "${{ github.workspace }}/package.json" ]; then
3849
echo "manager=npm" >> $GITHUB_OUTPUT
3950
echo "command=ci" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)