chore(devtools): deploy preview frontend builds in CI#8315
Merged
Conversation
fix command nit hm npx prod? Revert "prod?" This reverts commit d1e0f6d. working-directory INTERNAL_URL npx .env.production nit opus nit undo install vercel nit pull
Contributor
There was a problem hiding this comment.
1 issue found across 1 file
Prompt for AI agents (all issues)
Check if these issues are valid — if so, understand the root cause of each and fix them.
<file name=".github/workflows/preview.yml">
<violation number="1" location=".github/workflows/preview.yml:14">
P2: Grant `issues: write` so the workflow can update PR comments. Without it, the `gh api`/`gh pr comment` calls can fail due to insufficient permissions.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
Contributor
Greptile OverviewGreptile SummaryAdds a new GitHub Actions workflow ( This fits into the repo as CI/devtools automation intended to provide a stable preview frontend deployment tied to PR branches for QA against the cloud backend. Confidence Score: 2/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant GH as GitHub PR
participant GHA as GitHub Actions (preview.yml)
participant Vercel as Vercel CLI/API
participant Deploy as Vercel Preview Deployment
GH->>GHA: pull_request / workflow_dispatch event
GHA->>GHA: Checkout repo
GHA->>GHA: Install deps + build frontend
GHA->>Vercel: vercel pull (env/config)
GHA->>Vercel: vercel build
GHA->>Vercel: vercel deploy (prebuilt)
Vercel-->>GHA: Deployment URL
GHA-->>GH: Comment/Status with Preview URL
|
justin-tahara
approved these changes
Feb 11, 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.
Description
Deploys frontend builds to Vercel connected to the https://cloud.onyx.app backend for QA.
It uses a custom GitHub Actions workflow (following this guide) to:
In the Vercel Dashboard there are two environment variables set to enable this feature, namely:
OVERRIDE_API_PRODUCTION=trueINTERNAL_URL=https://cloud.onyx.app/apiHow Has This Been Tested?
#8312 (comment)
Additional Options
Summary by cubic
Adds a GitHub Actions workflow to build and deploy preview frontend builds to Vercel for every web change, then posts a clean preview URL on the PR. Previews point to the cloud backend (https://cloud.onyx.app) for QA.
Written for commit e09a857. Summary will update on new commits.