Skip to content

Commit

Permalink
chore: added build step before chromatic deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
hussedev committed Oct 9, 2024
1 parent 768f99b commit cba81ff
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,19 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile # Install dependencies with lockfile's versions to ensure consistency

- name: Cache Build
id: cache-build
uses: actions/cache@v4
with:
path: dist
key: ${{ runner.os }}-build-${{ hashFiles('**/*.ts', '**/*.tsx', '**/*.mdx') }} # Cache key based on OS and file hashes
restore-keys: |
${{ runner.os }}-build-
- name: Build
if: steps.cache-build.outputs.cache-hit != 'true'
run: pnpm build

- uses: chromaui/action@v11
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
Expand Down

0 comments on commit cba81ff

Please sign in to comment.