Skip to content

Add opt-in skip for the build step in dot deploy#30

Merged
UtkarshBhardwaj007 merged 1 commit intomainfrom
feat/deploy-skip-build
Apr 20, 2026
Merged

Add opt-in skip for the build step in dot deploy#30
UtkarshBhardwaj007 merged 1 commit intomainfrom
feat/deploy-skip-build

Conversation

@UtkarshBhardwaj007
Copy link
Copy Markdown
Member

@UtkarshBhardwaj007 UtkarshBhardwaj007 commented Apr 20, 2026

Summary

  • Adds a "build before deploy?" prompt as the first interactive step in dot deploy, defaulting to "yes" so the common path stays a single Enter press.
  • Adds a --no-build flag for the non-interactive path (commander-native auto-negation; default is to build).
  • The confirm screen and headless text summary both show a new Build row (rebuild first / skip (use existing)), and when skipping, the running view renders the build phase as complete · skipped — mirroring how the playground phase already handles its skip case.

runDeploy already supported skipBuild, so the CLI just threads the flag through.

Test plan

  • bun run test — all 190 tests pass (6 summary tests including a new one for the Build row)
  • tsc --noEmit clean
  • Manual: dot deploy → hit Enter on the build prompt → verify build runs (current default behaviour preserved)
  • Manual: dot deploy → select "no" on the build prompt → verify the build phase shows as skipped and the upload still succeeds
  • Manual: dot deploy --signer dev --domain foo --buildDir dist --playground --no-build → verify headless path skips the build and shows skip (use existing) in the summary
  • Manual: dot deploy --no-build with no other flags → verify interactive mode pre-fills skip and does NOT show the build prompt, but still asks for signer/domain/etc.

Today `dot deploy` unconditionally runs `runBuild` before uploading, which is
the right default but wasteful when the user has already built and just wants
to re-upload artifacts. Add a "build before deploy?" prompt as the first
interactive step (defaults to yes, Enter to proceed) and a `--no-build` flag
for the non-interactive path. The confirm screen and headless summary both
show which mode the run is using, and the running view renders the build
phase as `complete · skipped` when bypassed — mirroring how the `playground`
phase already handles its skip case.

`runDeploy` already supported `skipBuild` at the orchestrator level, so no
changes were needed there. The CLI just threads the flag through.
@github-actions
Copy link
Copy Markdown
Contributor

Dev build ready — try this branch:

curl -fsSL https://raw.githubusercontent.com/paritytech/playground-cli/main/install.sh | VERSION=dev/feat/deploy-skip-build bash

@UtkarshBhardwaj007 UtkarshBhardwaj007 merged commit 3669a5f into main Apr 20, 2026
5 checks passed
@UtkarshBhardwaj007 UtkarshBhardwaj007 deleted the feat/deploy-skip-build branch April 20, 2026 10:32
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