Skip to content

Lint

Lint #5982

Workflow file for this run

# Workflow name
name: 'Chromatic'
on:
push:
branches-ignore:
- 'dependabot/**' # 👈 Excludes dependabot branches
jobs:
chromatic-deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # 👈 Required to retrieve git history
- uses: actions/setup-node@v2
with:
node-version: '16.10.0'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm install --legacy-peer-deps
- name: Publish to chromatic
uses: chromaui/action@v1
# Chromatic GitHub Action options
with:
token: ${{ secrets.GITHUB_TOKEN }}
# 👇 Chromatic projectToken, refer to the manage page to obtain it.
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitZeroOnChanges: true # 👈 Option to prevent the workflow from failing
exitOnceUploaded: true # 👈 Exit with status 0 (OK) once the build has been sent to Chromatic
buildScriptName: storybook:export