Fix CI deploy job failing when VERCEL_TOKEN secret is not configured#180
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🥀 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>
Agent-Logs-Url: https://github.com/Tryonme-com/tryonyou-app/sessions/1ac68622-e53a-49dd-b628-a4f4be476719 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
LVT-ENG
approved these changes
Apr 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The CI workflow was failing on every push to
mainbecause thedeployjob unconditionally invoked the Vercel CLI with an empty token, causing an immediate authentication error — even thoughnpm 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: Addedif: ${{ secrets.VERCEL_TOKEN != '' }}to every Vercel CLI step in thedeployjob. 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.