ci(deploy): install pnpm before vercel build
vercel build shells out to pnpm (packageManager); the deploy job only had npm, which failed with spawn pnpm ENOENT after auth worked.
This commit is contained in:
parent
5d41fbb6cc
commit
2e873523c8
1 changed files with 11 additions and 1 deletions
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
|
@ -151,7 +151,8 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
needs: [checks]
|
||||
if: needs.checks.result == 'success'
|
||||
timeout-minutes: 20
|
||||
# pull → local `vercel build` (pnpm install + Next/Payload build against prod env) → upload.
|
||||
timeout-minutes: 35
|
||||
env:
|
||||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
|
||||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
|
||||
|
|
@ -195,6 +196,15 @@ jobs:
|
|||
exit 1
|
||||
;;
|
||||
esac
|
||||
# `vercel build` shells out to pnpm (packageManager in package.json); without
|
||||
# these steps the runner only has npm → spawn pnpm ENOENT.
|
||||
- uses: pnpm/action-setup@v4
|
||||
if: steps.tip.outputs.stale != 'true'
|
||||
- uses: actions/setup-node@v4
|
||||
if: steps.tip.outputs.stale != 'true'
|
||||
with:
|
||||
node-version: 24
|
||||
cache: pnpm
|
||||
- name: Install Vercel CLI
|
||||
if: steps.tip.outputs.stale != 'true'
|
||||
run: npm install --global vercel@41
|
||||
|
|
|
|||
Loading…
Reference in a new issue