feat(deploy-vercel): implement real CLI-backed vercel integration#229
Open
emil07770 wants to merge 1 commit into
Open
feat(deploy-vercel): implement real CLI-backed vercel integration#229emil07770 wants to merge 1 commit into
emil07770 wants to merge 1 commit into
Conversation
Replace stub with actual exec() calls to the Vercel CLI for build and ship.
- build(): runs `vercel build` (with `--prod` when on stable channel)
- ship(): runs `vercel deploy --token <token>` (with `--prod` on stable)
- Reads token via ctx.secret('VERCEL_TOKEN'), throws descriptive error if missing
- Short-circuits on ctx.dryRun in ship()
- Parses deployment URL from vercel stdout (https://*.vercel.app)
- Passes cwd and env to exec for proper isolation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
|
Heads up — the failing |
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.
Summary
build()andship()with realexec()calls to the Vercel CLIbuild(): runsvercel build(with--prodwhenconfig.prodis set or channel isstable)ship(): runsvercel deploy --token <token>(with--prodon stable); passes token via both CLI flag and env varctx.secret('VERCEL_TOKEN'), throws descriptive error if missingctx.dryRuninship()https://*.vercel.app)cwd: ctx.projectDirandenv: { VERCEL_TOKEN }toexecfor proper isolationTest plan
VERCEL_TOKENsecret:sh1pt secret set VERCEL_TOKEN <token>sh1pt ship deploy-vercel --dry-runshould return{ id: 'dry-run' }without calling vercelsh1pt build deploy-vercelshould invokevercel buildsh1pt ship deploy-vercelshould invokevercel deploy --token <token>and return{ id, url }prod: trueorchannel: stable, should add--prodflagsh1pt secret set VERCEL_TOKEN🤖 Generated with Claude Code