Skip to content

Commit

Permalink
chore: setting cicd pipeline on chromatic deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Jun99uu committed Oct 14, 2023
1 parent 24015f9 commit 023fdd0
Show file tree
Hide file tree
Showing 3 changed files with 539 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .github/chromatic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Chromatic Deployment

on:
push:
branches:
- main
paths:
- "client/**"

jobs:
chromatic-deployment:
runs-on: ubuntu-latest
defaults:
run:
working-directory: client

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Install dependencies
run: yarn install

- name: Build Storybook
run: yarn run build-storybook

- name: Run Chromatic
uses: chromaui/action@v1
with:
working-directory: client
projectToken: ${{ secrets.STORYBOOK_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit 023fdd0

Please sign in to comment.