[6.x] Add Cloudflare Pages deploy workflows for Storybook#19208
Closed
brianjhanson wants to merge 2 commits into
Closed
[6.x] Add Cloudflare Pages deploy workflows for Storybook#19208brianjhanson wants to merge 2 commits into
brianjhanson wants to merge 2 commits into
Conversation
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>
Contributor
Author
|
Duplicate of #19213 19213 |
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
.github/workflows/storybook-deploy-cp.ymlto build and deploy the@craftcms/cpStorybook (packages/craftcms-cp) to a Cloudflare Pages project (craftcms-cp-storybook).github/workflows/storybook-deploy-resources.ymlto build and deploy theresources/jsStorybook (root.storybook/config) to a separate Cloudflare Pages project (craftcms-storybook), including the PHP/Composer + Wayfinder +@craftcms/cpbuild steps that config depends on6.xas production deploysRequires (one-time, not in this PR)
wrangler pages project create craftcms-ui-storybook --production-branch=6.xwrangler pages project create craftcms-storybook --production-branch=6.xCLOUDFLARE_API_TOKENandCLOUDFLARE_ACCOUNT_IDTest plan
packages/craftcms-cp/**and confirm the preview deploy + PR comment appearresources/js/**and confirm the preview deploy + PR comment appear (verify the PHP/Wayfinder build steps succeed)6.xand confirm both production Storybook URLs update🤖 Generated with Claude Code