Skip to content

Commit

Permalink
refactor: fix chromatic ci code
Browse files Browse the repository at this point in the history
  • Loading branch information
swgvenghy committed Jan 22, 2025
1 parent 7274e03 commit 944786f
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,16 @@ jobs:
with:
node-version: 18

- name: Install dependencies
run: npm install
- name: cache dependencies
id: cache
uses: actions/cache@v4
with:
path: '**/node_modules'
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}-storybook

- name: depedency install
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci

- name: Build Storybook
run: npm run build-storybook
Expand All @@ -40,7 +48,7 @@ jobs:
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
storybookBuildDir: /tmp/chromatic-storybook


- name: Comment PR with Storybook link
uses: thollander/actions-comment-pull-request@v1
Expand Down

0 comments on commit 944786f

Please sign in to comment.