Skip to content

Chromatic (for Storybook) #1948

Chromatic (for Storybook)

Chromatic (for Storybook) #1948

Workflow file for this run

name: Chromatic (for Storybook)
on: push
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install dependencies
# https://github.com/CrossroadsCX/action/blob/afe74f34a1608ecb8571b65163a7695ecf1af0d4/README.md#yarn-2-support
run: |
echo 'nodeLinker : "node-modules"' >> .yarnrc.yml
yarn rebuild
yarn build
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
exitOnceUploaded: true