metadata improvement #2018
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 | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
paths: | |
- ".github/workflows/chromatic.yml" | |
- "config/tailwindcss/**" | |
- "packages/ui/**" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
fetch-depth: 0 | |
- name: Install dependencies | |
uses: ./.github/actions/install | |
- name: Build storybook | |
run: pnpm exec turbo run build --filter=@sushiswap/storybook^... | |
- name: Publish to Chromatic | |
uses: chromaui/action@v1 | |
with: | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
workingDir: apps/storybook | |
buildScriptName: build | |
exitOnceUploaded: true | |