diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8720f67a..9a81a10d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -27,24 +27,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - name: Detect package manager - id: detect-package-manager - run: | - if [ -f "${{ github.workspace }}/yarn.lock" ]; then - echo "manager=yarn" >> $GITHUB_OUTPUT - echo "command=install" >> $GITHUB_OUTPUT - exit 0 - elif [ -f "${{ github.workspace }}/package.json" ]; then - echo "manager=npm" >> $GITHUB_OUTPUT - echo "command=ci" >> $GITHUB_OUTPUT - exit 0 - else - echo "Unable to determine package manager" - exit 1 - fi - name: Setup Node - uses: actions/setup-node@v4 + uses: pnpm/action-setup@v4 with: + version: 8 node-version: "20" cache: ${{ steps.detect-package-manager.outputs.manager }} - name: Setup Pages