-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
🪟 🔧 Publish webapp storybook to chromatic in CI #16169
Conversation
43ddc2b
to
be126fc
Compare
ce486b2
to
1f8999b
Compare
…correct github token to step
1f8999b
to
c5378fb
Compare
runs-on: ${{ needs.start-frontend-runner.outputs.label }} | ||
steps: | ||
- name: Checkout Airbyte | ||
uses: actions/checkout@v2 | ||
with: |
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.
Curious, why add this?
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.
It's for Chromatic to be able to track the history:
Chromatic supports the latest versions of the actions/checkout (i.e., versions 2 and 3). Both of them come with a caveat. They will only retrieve a single commit without any additional history. Chromatic needs the full Git history to keep track of changes in your repository.
https://www.chromatic.com/docs/github-actions#support-for-codeactionscheckoutv2code-and-above
* Add Publish to storybook step in webapp gradle workflow * Set fetch-dept to 0 for airbyte webapp build * Fix typo in chromatic config * Fix typo when you've been writing too much css * Fix storybook build path in gradle workflow * Use full path in chromatic action * Try another path configuration for chromatic workflow action * Use label ot token in storybook deploy * Back to github_token * Move Storybook deploy to separate job * Fix run command in publish storybook workflow * Rollback publish storybook as separate step from build-frontend, add correct github token to step * Let the chromatic step build the storybook * Restore storybookBuildDir on publish to chromatic step * Add exitOnceUploaded to chromatic action
* Add Publish to storybook step in webapp gradle workflow * Set fetch-dept to 0 for airbyte webapp build * Fix typo in chromatic config * Fix typo when you've been writing too much css * Fix storybook build path in gradle workflow * Use full path in chromatic action * Try another path configuration for chromatic workflow action * Use label ot token in storybook deploy * Back to github_token * Move Storybook deploy to separate job * Fix run command in publish storybook workflow * Rollback publish storybook as separate step from build-frontend, add correct github token to step * Let the chromatic step build the storybook * Restore storybookBuildDir on publish to chromatic step * Add exitOnceUploaded to chromatic action
What
Closes #14846
Adds step to publish storybook to chromatic in CI
How
Uses the @chromaui/action Github action to publish the storybook during the "Frontend: Build" CI workflow step
Tests