reset to 6bbfc85120a9635feace25d357ae633d480a5791 #6305
Workflow file for this run
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: push | |
jobs: | |
chromatic: | |
if: ${{ github.actor != 'dependabot[bot]' && github.ref == 'refs/heads/main' || contains(github.event.head_commit.message, '[ci chromatic]') }} | |
runs-on: ubuntu-latest | |
env: | |
CYPRESS_INSTALL_BINARY: 0 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Publish to Chromatic | |
uses: chromaui/action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
buildScriptName: 'build:storybook' | |
skip: 'dependabot/**' | |
env: | |
STORYBOOK_ENV: chromatic | |
NODE_OPTIONS: '--max-old-space-size=4096' |