Skip to content

fix: promote staged Vercel deployments to active production#1981

Open
amikofalvy wants to merge 1 commit intomainfrom
fix/vercel-promote-staged-deployments
Open

fix: promote staged Vercel deployments to active production#1981
amikofalvy wants to merge 1 commit intomainfrom
fix/vercel-promote-staged-deployments

Conversation

@amikofalvy
Copy link
Collaborator

Summary

  • agents-manage-ui has Deployment Protection (staged deployments) enabled in Vercel, so vercel deploy --prod only stages the deployment without activating it — it shows as "Production: Staged" in the dashboard
  • Adds an explicit vercel promote step after deployment checks pass to ensure the deployment becomes the active production deployment
  • For projects without staged deployments (like agents-api), the promote is a no-op

Test plan

  • Verified agents-api deploys as "Production" (active) — no change needed
  • Run the workflow via dispatch and confirm agents-manage-ui moves from "Production: Staged" to "Production" (active)

Made with Cursor

agents-manage-ui has Deployment Protection with staged deployments
enabled, so `vercel deploy --prod` only stages the deployment without
activating it. Add an explicit `vercel promote` step after deployment
checks pass to ensure all projects are promoted to active production.

Co-authored-by: Cursor <cursoragent@cursor.com>
@changeset-bot
Copy link

changeset-bot bot commented Feb 13, 2026

⚠️ No Changeset found

Latest commit: ce73201

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Feb 13, 2026

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

Project Deployment Actions Updated (UTC)
agents-api Ready Ready Preview, Comment Feb 13, 2026 7:54am
agents-docs Ready Ready Preview, Comment Feb 13, 2026 7:54am
agents-manage-ui Ready Ready Preview, Comment Feb 13, 2026 7:54am

Request Review

Copy link
Contributor

@claude claude bot left a comment

Choose a reason for hiding this comment

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

PR Review Summary

(0) Total Issues | Risk: Low

This is a clean, focused fix that adds an explicit vercel promote step to handle Vercel's staged deployments feature. The implementation follows the existing workflow patterns and uses the same authentication approach as the existing steps.

🔴❗ Critical (0) ❗🔴

None.

🟠⚠️ Major (0) 🟠⚠️

None.

🟡 Minor (0) 🟡

None.

💭 Consider (0) 💭

None.

🧹 While You're Here (1) 🧹

🧹 1) vercel-production.yml Missing explicit permissions block

Issue: The workflow lacks an explicit permissions: block, inheriting default GITHUB_TOKEN permissions which may be broader than necessary.

Why: Other workflows in this repo (release.yml, claude-code-review.yml, stale.yml) follow the principle of least privilege by explicitly declaring required permissions. Since this workflow only needs to read the repo (for checkout) and doesn't write to GitHub (only to Vercel via VERCEL_TOKEN), adding explicit minimal permissions would align with security best practices.

Fix: Add at the workflow level (after env: block):

permissions:
  contents: read

Refs: release.yml permissions block


✅ APPROVE

Summary: Clean, minimal change that correctly addresses the staged deployment activation problem. The implementation follows existing patterns in the workflow (same auth tokens, same step structure). The "While You're Here" suggestion is optional and unrelated to the PR's core purpose.

Discarded (4)
Location Issue Reason Discarded
vercel-production.yml:36 Mutable tag (@v4) for actions/checkout Pre-existing code; repo-wide pattern (other workflows use same approach).
vercel-production.yml:60-68 No timeout-minutes on steps Pre-existing pattern; MEDIUM confidence doesn't meet threshold.
vercel-production.yml:65-68 No error handling if promote fails for non-staged INFO severity; already manually tested per PR description.
vercel-production.yml:44 Vercel CLI installed without version pin Pre-existing code; INFO severity.
Reviewers (1)
Reviewer Returned Main Findings Consider While You're Here Inline Comments Pending Recs Discarded
pr-review-devops 5 0 0 1 0 0 4
Total 5 0 0 1 0 0 4

@github-actions github-actions bot deleted a comment from claude bot Feb 13, 2026
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

Comments