Skip to content

Commit

Permalink
fix chromatic script
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Mar 27, 2024
1 parent 68fe0ce commit a97567c
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
Expand Up @@ -5,20 +5,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Install dependencies
uses: bahmutov/npm-install@v1
run: yarn install --immutable --immutable-cache --check-cache

- name: Build addon
run: yarn workspace msw-storybook-addon build

- name: Publish to Chromatic
uses: chromaui/action@latest
with:
workingDir: ./packages/docs
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitOnceUploaded: true

0 comments on commit a97567c

Please sign in to comment.