Feature/1163 toggle group make available in all themes #3888
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: | |
pull_request: | |
branches: [ "main" ] | |
types: [opened, synchronize, reopened, closed, ready_for_review] | |
push: | |
branches: [ "main" ] | |
workflow_dispatch: | |
env: | |
FIGMA_TOKEN: ${{ secrets.FIGMA_AUTH_TOKEN }} | |
FONT_AWESOME_AUTH_TOKEN: ${{ secrets.FONT_AWESOME_AUTH_TOKEN }} | |
jobs: | |
chromatic-deployment: | |
runs-on: ubuntu-latest | |
if: '! github.event.pull_request.draft' | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Publish to Chromatic - Components | |
uses: chromaui/action@latest | |
with: | |
autoAcceptChanges: main | |
buildScriptName: chromatic-components | |
exitOnceUploaded: true | |
projectToken: ${{ secrets.CHROMATIC_TOKEN }} | |
onlyChanged: true | |
workingDir: . | |
- name: Publish to Chromatic - Themes | |
uses: chromaui/action@v1 | |
with: | |
autoAcceptChanges: main | |
buildScriptName: themes | |
exitOnceUploaded: true | |
projectToken: ${{ secrets.CHROMATIC_TOKEN_THEMES }} | |
onlyChanged: true | |
workingDir: chromatic |