Skip to content

Commit e42b684

Browse files
rishabh3562claude
andcommitted
fix: add npm install step to deploy-preview job
- Add "npm ci" before building in deploy-preview job - This fixes "next: not found" error when vercel build falls back to npm run build - Dependencies are now installed before attempting to build the project The error occurred because: 1. Vercel build failed (VERCEL_TOKEN not configured) 2. Fallback to npm run build was triggered 3. But dependencies were never installed, causing "next: not found" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4de4dde commit e42b684

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci-cd-pipeline.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,9 @@ jobs:
321321
node-version: ${{ env.NODE_VERSION }}
322322
cache: 'npm'
323323

324+
- name: Install dependencies
325+
run: npm ci --prefer-offline
326+
324327
- name: Install Vercel CLI
325328
run: npm install --global vercel@latest
326329

0 commit comments

Comments
 (0)