Skip to content

Fix CI deploy job failing when VERCEL_TOKEN secret is not configured#180

Merged
LVT-ENG merged 3 commits into
mainfrom
copilot/npm-run-build
Apr 10, 2026
Merged

Fix CI deploy job failing when VERCEL_TOKEN secret is not configured#180
LVT-ENG merged 3 commits into
mainfrom
copilot/npm-run-build

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 9, 2026

The CI workflow was failing on every push to main because the deploy job unconditionally invoked the Vercel CLI with an empty token, causing an immediate authentication error — even though npm run build, type-checking, and all Python tests passed cleanly.

Vercel deployments are already handled by the Vercel GitHub App integration (PR previews + production), making the manual CI deploy job redundant when the secret is absent.

Changes

  • .github/workflows/ci.yml: Added if: ${{ secrets.VERCEL_TOKEN != '' }} to every Vercel CLI step in the deploy job. When the secret is unset, all CLI steps are skipped and the job exits cleanly instead of failing. When the token is present, behaviour is unchanged.
- name: Install Vercel CLI
  if: ${{ secrets.VERCEL_TOKEN != '' }}
  run: npm i -g vercel@latest

- name: Pull Vercel environment
  if: ${{ secrets.VERCEL_TOKEN != '' }}
  run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tryonyou-app Ready Ready Preview, Comment Apr 9, 2026 11:56pm
tryonyou-pilot Ready Ready Preview, Comment Apr 9, 2026 11:56pm
workspace Ready Ready Preview, Comment Apr 9, 2026 11:56pm

Request Review

Copilot AI and others added 2 commits April 9, 2026 23:53
🥀 Honor Protocol: Goldschmied/Valentino/Ospina.
✨ Status: VIVOS.
🚀 Divineo Absoluto en París.
@CertezaAbsoluta @lo+erestu PCT/EP2025/067317 Bajo Protocolo de Soberanía V10 - Founder: Rubén

Co-authored-by: LVT-ENG <214667862+LVT-ENG@users.noreply.github.com>
Copilot AI changed the title [WIP] Run build command for Tryonyou app Fix CI deploy job failing when VERCEL_TOKEN secret is not configured Apr 9, 2026
Copilot AI requested a review from LVT-ENG April 9, 2026 23:56
@LVT-ENG LVT-ENG marked this pull request as ready for review April 10, 2026 07:07
@LVT-ENG LVT-ENG merged commit 4dc0f8a into main Apr 10, 2026
5 checks passed
Copy link
Copy Markdown
Member

@LVT-ENG LVT-ENG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants