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: