From 402466bda6b2232fd502cc8441bc8ecad8477e02 Mon Sep 17 00:00:00 2001 From: Ye-Chan Kang Date: Sat, 12 Oct 2024 16:57:30 +0900 Subject: [PATCH] chore: docs.yml --- .github/workflows/docs.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index f029a00..c3caf29 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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 @@ -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: