ci: Cloudflare Workers preview + deploy workflows and README rewrite - #6
Merged
Merged
Conversation
Replaces the ECR/Docker workflow with preview.yml (versioned PR previews via wrangler versions upload --preview-alias) and deploy.yml (push-to-main wrangler deploy). Renames the worker to storefront-tanstack-template so forks won't collide with other workers on shared Cloudflare accounts. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Removes Deno-era instructions (deno task start, deno task update, Deno install link) and replaces them with a mini-tutorial for the current stack: prerequisites, npm install, .env, npm run dev on port 5173, build + deploy. Adds links to @decocms/start (deco-start) and @decocms/apps (apps-start) repos, a scripts reference table, and a project structure map. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
The latest updates on your deployments.
|
Matches the existing :fix pattern (format/format:check, tailwind:lint/tailwind:fix) and surfaces the unused-code check in the README scripts reference table.
Guards wrangler versions upload behind a HAS_CF_SECRETS env check so forks without CLOUDFLARE_API_TOKEN/CLOUDFLARE_ACCOUNT_ID configured don't get a red X on every PR. Build still runs (validates code), and a sticky PR comment explains how to enable previews. Deploy workflow is intentionally not guarded — prod should fail loudly.
Contributor
Preview deployed
|
…eo-preview-workflow # Conflicts: # README.md
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-and-push-image.yaml) with Cloudflare Workers CI:preview.yml(versioned PR previews viawrangler versions upload --preview-alias, sticky comment with URLs) anddeploy.yml(push-to-main→wrangler deploy).wrangler.jsonctostorefront-tanstack-templateso forks don't collide with other workers on a shared Cloudflare account.README.md: removes all Deno-era instructions, adds a mini-tutorial (prerequisites → install →.env→npm run devon port 5173 → build), a scripts reference table, a project structure map, and links to@decocms/startand@decocms/apps..github/workflows/README.mdto document the new Cloudflare Workers flow (secrets, triggers, worker naming, custom domain).Test plan
CLOUDFLARE_API_TOKENandCLOUDFLARE_ACCOUNT_IDas repo secretsPreviewworkflow runs and comments a preview URLmain→ confirmDeployworkflow runswrangler deployand the prod worker updatesstorefront-tanstack-templateexists and didn't overwrite anything pre-existing🤖 Generated with Claude Code