Merge pull request #11 from gdsc-ssu/feat/flow-setting #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
workingDir: client | |
projectToken: ${{ secrets.STORYBOOK_TOKEN }} | |
token: ${{ secrets.GITHUB_TOKEN }} |