-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploy Storybook with Chromatic + upgrade storybook to 8.2.7 (#3992)
- Loading branch information
1 parent
016c45c
commit 313c888
Showing
3 changed files
with
439 additions
and
406 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
# yamllint disable rule:truthy rule:truthy rule:line-length | ||
name: 'Chromatic Publish' | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
paths: | ||
- 'frontend/packages/ui/**' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
chromatic: | ||
defaults: | ||
run: | ||
working-directory: ./frontend/packages/ui | ||
name: Run Chromatic | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # In order for Chromatic to correctly determine baseline commits, tot access the full Git history graph. | ||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: 'npm' | ||
cache-dependency-path: '**/package-lock.json' | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Run Chromatic | ||
id: chromatic | ||
uses: chromaui/action@latest | ||
with: | ||
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | ||
workingDir: ./frontend/packages/ui | ||
- name: Outputs Storybook URL | ||
run: | | ||
echo "Storybook URL: ${{ steps.chromatic.outputs.storybookUrl }}" |
Oops, something went wrong.