Merge pull request #7110 from Sage/FE-6218 #3704
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 Push | |
on: | |
push: | |
# We need these branches to update their baselines when they are merged into | |
branches: | |
- master | |
- "[0-9]+.x" | |
- "[0-9]+.x.x" | |
- "[0-9]+.[0-9]+.x" | |
- "major/**" | |
jobs: | |
chromatic: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ">=20.9.0 20" | |
- run: npm ci | |
- uses: chromaui/action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
onlyChanged: true | |
exitOnceUploaded: true # We don't want it to fail CI, we'll be using the GitHub Check |