Skip to content

Commit

Permalink
Add a github workflow for storybook and chromatic
Browse files Browse the repository at this point in the history
  • Loading branch information
Graeme Houston committed Aug 19, 2024
1 parent 1b13790 commit 174d9b6
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/storybook-chromatic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Storybook to Chromatic"
on: push

jobs:
publish-storybook:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: yarn install

- name: Build Storybook
run: yarn build-storybook

- name: Publish to Chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
storybookBuildDir: storybook-static

0 comments on commit 174d9b6

Please sign in to comment.