feat: add Workers Previews support - #442
Open
yomna-shousha wants to merge 6 commits into
Open
Conversation
Add support for `wrangler preview` command output parsing, GitHub Deployments, Job Summaries, and action outputs. Changes: - Add OutputEntryPreview Zod schema matching wrangler's preview artifact - Parse preview artifacts and set outputs: preview-url, preview-name, preview-id, preview-deployment-url, preview-deployment-id - Create GitHub Deployments for previews (non-production environment) - Render Workers Preview Job Summary in GitHub Actions UI - Extend --var auto-injection to preview commands - Add preview deployment section to README with recommended workflow - Add 5 new preview-specific outputs to action.yml
yomna-shousha
force-pushed
the
feat/workers-previews-support
branch
from
July 29, 2026 15:31
041882c to
4f66906
Compare
WillTaylorDev
approved these changes
Sep 1, 2026
WillTaylorDev
left a comment
Collaborator
There was a problem hiding this comment.
Failing CI check, but doesn't look related to your changes
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.
What
Adds support for
wrangler previewinwrangler-action. Preview commands now parse Wrangler Preview artifacts, expose Preview-specific outputs, and can create GitHub Deployments and job summaries whengitHubTokenis provided.The README documents the direct Wrangler workflow first, so users can copy plain GitHub Actions YAML without taking a dependency on this action. It then shows the
wrangler-actionwrapper for users who want action outputs, GitHub Deployments, and job summaries.Changes
previewcommand output and sets Preview outputs.gitHubTokenis provided.--varauto-injection topreviewcommands.npx wrangler preview --json,wrangler-action, and deeper automation examples.wrangler-actionv4 release.Outputs
deployment-urlpreview-urlpreview-deployment-urlpreview-namepreview-idpreview-deployment-idExample
Users can run Wrangler directly:
Or use
wrangler-actionwhen they want Preview outputs, GitHub Deployments, and the job summary:Verification
Local verification passes:
npm run buildnpm test -- --runnpm run checkThe
wrangler_action_self_testingPR check currently fails at a live deployment fixture because this PR run does not have access to the Cloudflare secrets required by that workflow. The build, unit tests, and formatting steps in that same check pass before the secrets-backed fixture runs.