Skip to content

Commit

Permalink
storybook action updates
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Edgar <[email protected]>
  • Loading branch information
MikeEdgar committed Sep 3, 2024
1 parent 1484bba commit 1c97bbb
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,24 @@ jobs:
with:
fetch-depth: 0

- name: Install Dependencies
run: npm install
working-directory: ./ui

- name: Build Storybook
run: npm run build-storybook
working-directory: ./ui
run: |
npm ci
npx playwright install
npm run build-storybook
- name: Publish to Chromatic
id: chromatic
uses: chromaui/action@v11
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: chpt_0314d7b0d66ad0c
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
storybookBuildDir: "storybook-static"
workingDir: "./ui"
exitOnceUploaded: true

- name: Test the deployed Storybook
- name: Test Storybook
working-directory: ./ui
run: |
npx playwright install
npm run test-storybook -- --no-index-json --url ${{ steps.chromatic.outputs.storybookUrl }}
working-directory: ./ui

0 comments on commit 1c97bbb

Please sign in to comment.