Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-native: Automate Storybook Build for Successful PRs in metamask-design-system via GitHub Actions #86

Open
georgewrmarshall opened this issue Nov 7, 2024 · 0 comments

Comments

@georgewrmarshall
Copy link
Contributor

Description

Set up a GitHub Action that automatically builds and generates a Storybook preview for every successful pull request (PR) build in the metamask-design-system repository. This will allow reviewers and stakeholders to easily access and preview component changes without needing to build the Storybook locally.

Technical Details

  • Configure the GitHub Action workflow to trigger a Storybook build whenever a PR is successfully built.
  • The Action should run on each PR and generate a deployable Storybook instance (e.g., hosted on a temporary environment or using a preview feature).
  • Ensure the generated Storybook is linked in the PR for easy access by reviewers.
  • The Storybook preview should be automatically discarded or disabled after the PR is merged or closed.
  • Use tools such as Vercel, Netlify, or GitHub Pages preview to host the temporary Storybook build, depending on the existing infrastructure.

Acceptance Criteria

  • A Storybook build is automatically generated and hosted for each successful PR build.
  • The build is linked in the PR, making it accessible for review.
  • The Storybook preview is automatically removed or archived once the PR is merged or closed.
  • The workflow is reliable and does not block PR merging.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant