Skip to content

Commit 92607f1

Browse files
committed
use pnpm
1 parent 2039578 commit 92607f1

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/static.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ jobs:
3232
- name: Detect package manager
3333
id: detect-package-manager
3434
run: |
35-
if [ -f "${{ github.workspace }}/yarn.lock" ]; then
35+
if [ -f "${{ github.workspace }}/pnpm-lock.yaml" ]; then
36+
echo "manager=pnpm" >> $GITHUB_OUTPUT
37+
echo "command=install" >> $GITHUB_OUTPUT
38+
echo "runner=pnpm" >> $GITHUB_OUTPUT
39+
exit 0
40+
elif [ -f "${{ github.workspace }}/yarn.lock" ]; then
3641
echo "manager=yarn" >> $GITHUB_OUTPUT
3742
echo "command=install" >> $GITHUB_OUTPUT
3843
echo "runner=yarn" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)