From c5a9e051de94f0db0cccc7a736c5ee020660a56b Mon Sep 17 00:00:00 2001 From: Harshit Singh Bhandari Date: Sun, 12 Jul 2026 03:14:26 +0530 Subject: [PATCH] ci: install pnpm in the deploy workflow (fix spawn pnpm ENOENT) vercel build runs the project's pnpm install, which needs pnpm on PATH; the runner only had node, so the first deploy failed with spawn pnpm ENOENT. Add pnpm/action-setup (v10, matching local + Vercel) before setup-node. Co-Authored-By: Claude Fable 5 --- .github/workflows/deploy.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c01e135..62176e7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -38,10 +38,19 @@ jobs: - name: Checkout uses: actions/checkout@v4 + # `vercel build` runs the project's install command (pnpm), so pnpm must + # be on PATH or the build fails with `spawn pnpm ENOENT`. pnpm 10 matches + # local dev (10.11.1) and Vercel's detected version for this project. + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 10 + - name: Setup Node uses: actions/setup-node@v4 with: node-version: '24' + cache: pnpm - name: Install Vercel CLI run: npm install -g vercel@latest