Skip to content

Commit

Permalink
chore: docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kyechan99 authored Oct 12, 2024
1 parent 7157b48 commit 402466b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ jobs:
- name: Detect package manager
id: detect-package-manager
run: |
if [ -f "${{ github.workspace }}/yarn.lock" ]; then
echo "manager=yarn" >> $GITHUB_OUTPUT
if [ -f "${{ github.workspace }}/pnpm-lock.yaml" ]; then
echo "manager=pnpm" >> $GITHUB_OUTPUT
echo "command=install" >> $GITHUB_OUTPUT
echo "runner=yarn" >> $GITHUB_OUTPUT
echo "runner=pnpm" >> $GITHUB_OUTPUT
exit 0
elif [ -f "${{ github.workspace }}/package.json" ]; then
echo "manager=npm" >> $GITHUB_OUTPUT
Expand All @@ -48,6 +48,9 @@ jobs:
echo "Unable to determine package manager"
exit 1
fi
- name: Install pnpm
run: |
npm install -g pnpm
- name: Setup Node
uses: actions/setup-node@v4
with:
Expand Down

0 comments on commit 402466b

Please sign in to comment.