Skip to content

ci: implement prebuilt deploy with GitHub-linked deployments and hidd…#14

Open
JenyaL wants to merge 8 commits intomainfrom
ci/vercel-checks-logs
Open

ci: implement prebuilt deploy with GitHub-linked deployments and hidd…#14
JenyaL wants to merge 8 commits intomainfrom
ci/vercel-checks-logs

Conversation

@JenyaL
Copy link
Owner

@JenyaL JenyaL commented Oct 11, 2025

…en prod URL

Summary by CodeRabbit

  • Chores

    • Streamlined CI/CD pipeline for faster, more reliable deployments.
    • Consolidated build and deployment steps with clearer environment handling.
    • Production deployments now limited to the main branch.
    • Deployment card creation occurs only on main for production.
  • Refactor

    • Simplified deployment output to display a single, clear preview URL.
    • Updated post-deployment messaging for concise success feedback.
    • Improved PR comment formatting to highlight the preview URL.

@vercel
Copy link

vercel bot commented Oct 11, 2025

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

1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
build-test Ignored Ignored Oct 12, 2025 8:55pm

@coderabbitai
Copy link

coderabbitai bot commented Oct 14, 2025

Walkthrough

The CI workflow in .github/workflows/ci-deploy.yml was simplified: renamed job, consolidated steps to install/setup, streamlined Vercel config and deploy logic with inline environment detection, added URL parsing, updated PR comment and deployment-card steps, and restricted production deployment/card creation to the main branch.

Changes

Cohort / File(s) Summary
CI workflow simplification and deploy flow
\.github/workflows/ci-deploy.yml
Normalized triggers; removed pull-requests: write permission; renamed job to build_and_deploy; removed lint/unit/e2e/build steps; consolidated to dependency install and Vercel setup; simplified env inference; adjusted prebuild/deploy with prod on main; added URL extraction; updated PR comment formatting; created deployment card only on main with explicit production env.

Sequence Diagram(s)

sequenceDiagram
    autonumber
    actor Dev as Developer
    participant GH as GitHub Actions
    participant VC as Vercel CLI
    participant PR as GitHub PR

    Dev->>GH: push / pull_request
    activate GH
    GH->>GH: Install dependencies (with CI fallback)
    GH->>GH: Setup Vercel CLI
    Note right of GH: Env inferred inline from branch (main => production)

    rect rgba(200,235,255,0.3)
      GH->>GH: Prebuild project (produce output)
      GH->>VC: Deploy prebuilt output<br/>(--prod on main)
      VC-->>GH: Deployment output (raw logs)
    end

    GH->>GH: Parse deployment URL from Vercel output
    alt On pull_request
      GH->>PR: Comment with bold preview URL
    end
    alt On main branch
      GH->>GH: Create deployment card<br/>(environment: production)
    end
    deactivate GH
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

I hopped through pipelines, light and spry,
Trimmed the steps, let old ones fly.
Vercel whispers, “URL’s clear!”
I twitch my nose—preview is here.
On main I thump: “Production, go!”
A carrot toast to the greener flow. 🥕🚀

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The PR title clearly describes the primary update to the CI workflow by highlighting the implementation of prebuilt deployments, the integration of GitHub-linked deployments, and the hiding of the production URL, which aligns directly with the changes made to the GitHub Actions workflow.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch ci/vercel-checks-logs

Comment @coderabbitai help to get the list of available commands and usage tips.

@JenyaL
Copy link
Owner Author

JenyaL commented Oct 14, 2025

@coderabbitai review

@coderabbitai
Copy link

coderabbitai bot commented Oct 14, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
.github/workflows/ci-deploy.yml (1)

16-16: Normalize YAML spacing to satisfy lint warning.

YAMLlint is flagging the double spaces after the colons on Line 16 (VERCEL_ORG) and Line 59 (VC_TEAM). Trimming those extra spaces will keep the workflow lint-clean. Based on static analysis hints.

Also applies to: 59-59

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between cfc55ce and c10a91d.

📒 Files selected for processing (1)
  • .github/workflows/ci-deploy.yml (1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.37.1)
.github/workflows/ci-deploy.yml

[warning] 16-16: too many spaces after colon

(colons)


[warning] 59-59: too many spaces after colon

(colons)

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.

1 participant