Skip to content

[6.x] Add Cloudflare Pages deploy workflows for Storybook#19208

Closed
brianjhanson wants to merge 2 commits into
6.xfrom
claude/hopeful-visvesvaraya-8c30c0
Closed

[6.x] Add Cloudflare Pages deploy workflows for Storybook#19208
brianjhanson wants to merge 2 commits into
6.xfrom
claude/hopeful-visvesvaraya-8c30c0

Conversation

@brianjhanson

@brianjhanson brianjhanson commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds .github/workflows/storybook-deploy-cp.yml to build and deploy the @craftcms/cp Storybook (packages/craftcms-cp) to a Cloudflare Pages project (craftcms-cp-storybook)
  • Adds .github/workflows/storybook-deploy-resources.yml to build and deploy the resources/js Storybook (root .storybook/ config) to a separate Cloudflare Pages project (craftcms-storybook), including the PHP/Composer + Wayfinder + @craftcms/cp build steps that config depends on
  • Both workflows deploy PR previews (commented on the PR, updated in place across pushes) and treat pushes to 6.x as production deploys

Requires (one-time, not in this PR)

  • wrangler pages project create craftcms-ui-storybook --production-branch=6.x
  • wrangler pages project create craftcms-storybook --production-branch=6.x
  • Repo secrets CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID

Test plan

  • Cloudflare Pages projects created and secrets added to the repo
  • Open a PR touching packages/craftcms-cp/** and confirm the preview deploy + PR comment appear
  • Open a PR touching resources/js/** and confirm the preview deploy + PR comment appear (verify the PHP/Wayfinder build steps succeed)
  • Merge to 6.x and confirm both production Storybook URLs update

🤖 Generated with Claude Code

brianjhanson and others added 2 commits July 6, 2026 10:06
Deploys both the @craftcms/cp Storybook (packages/craftcms-cp) and the
resources/js Storybook to separate Cloudflare Pages projects, with PR
preview URLs commented on each pull request and production deploys on
push to 6.x.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@brianjhanson brianjhanson changed the title Add Cloudflare Pages deploy workflows for Storybook [6.x] Add Cloudflare Pages deploy workflows for Storybook Jul 8, 2026
@brianjhanson

Copy link
Copy Markdown
Contributor Author

Duplicate of #19213 19213

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