mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-13 23:53:05 +00:00
Merge pull request #62 from fsolla/agent/fix-vercel-deploy-pnpm
CI — install pnpm for vercel build deploy
This commit is contained in:
commit
974d444883
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