-
Notifications
You must be signed in to change notification settings - Fork 5k
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
feat: migrate storybook to gh actions #29929
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Builds ready [37ae14b]
Page Load Metrics (1598 ± 28 ms)
Bundle size diffs
|
- name: Deploy storybook | ||
# For a `pull_request` event, the branch is `github.head_ref``. | ||
# For a `push` event, the branch is `github.ref_name`. | ||
if: ${{ (github.head_ref || github.ref_name) == 'main' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we test deployment too? not entirely sure if it is safe to run it randomly for testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its probably okay to merge without, as long as we know about when it will be merged in so we can revert quickly if it breaks things 😅
Builds ready [b996dd6]
Page Load Metrics (1809 ± 69 ms)
Bundle size diffs
highlights: |
9d84f0c
to
ba01e27
Compare
Did one test without highlights and one with highlights. Both seem to still work. Didn't test deployment. |
Builds ready [e040c24]
Page Load Metrics (1617 ± 55 ms)
Bundle size diffs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent work! We may be able to use some of this for the https://github.com/MetaMask/metamask-design-system repo as well. Thank you! LGTM!
- Checked Storybook build of PR works ✅
9ba17d2
} | ||
} catch (error) { | ||
console.error(`Error constructing highlight results: '${error}'`); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed because it is unused.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More context here https://consensys.slack.com/archives/CTQAGKY5V/p1738084571209129, and here #29929 (comment)
Builds ready [b787356]
Page Load Metrics (1743 ± 83 ms)
Bundle size diffs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we aren't testing the new deploy step in this PR, let's immediately check that the deploy worked as soon as this merges, and revert quickly if it's a problem.
Looks like the deploy is failing with an auth error |
Description
This PR migrates the storybook jobs from CircleCI to GitHub Actions.
Related issues
Fixes: #29447
Manual testing steps
Screenshots/Recordings
Not applicable
Pre-merge author checklist
Pre-merge reviewer checklist