Skip to content

Commit

Permalink
fix: chromatic deployment using actions
Browse files Browse the repository at this point in the history
  • Loading branch information
samshara committed Jun 18, 2024
1 parent 9038fd8 commit de23692
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
name: 'Chromatic Publish'

# NOTE: we should change this once project/playwright is merged to develop
on:
push:
branches:
- project/storybook

jobs:
test:
chromatic:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/go-ui-storybook
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: 'yarn'
- run: yarn
#👇 Adds Chromatic as a step in the workflow
Expand All @@ -25,3 +27,4 @@ jobs:
#👇 Chromatic projectToken
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
working-directory: packages/go-ui-storybook

0 comments on commit de23692

Please sign in to comment.