Feature: add new font 'EnOhPee' and update theme configurations #7249
This file contains hidden or 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 }} | |
| TOKENS_STUDIO_API_KEY: ${{ secrets.TOKENS_STUDIO_2_API_KEY }} | |
| jobs: | |
| chromatic-deployment: | |
| runs-on: ubuntu-latest | |
| if: '! github.event.pull_request.draft' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: 'yarn' | |
| - name: Install dependencies | |
| run: yarn install --immutable | |
| - name: Build Components Storybook | |
| run: yarn run chromatic-components | |
| - name: Publish to Chromatic - Components | |
| uses: chromaui/action@latest | |
| with: | |
| autoAcceptChanges: main | |
| exitOnceUploaded: true | |
| onlyChanged: true | |
| projectToken: ${{ secrets.CHROMATIC_TOKEN }} | |
| storybookBaseDir: . | |
| storybookBuildDir: storybook-static | |
| - name: Build Themes Storybook | |
| run: yarn run chromatic-themes | |
| - name: Publish to Chromatic - Themes | |
| uses: chromaui/action@latest | |
| with: | |
| autoAcceptChanges: main | |
| exitOnceUploaded: true | |
| onlyChanged: true | |
| projectToken: ${{ secrets.CHROMATIC_TOKEN_THEMES }} | |
| storybookBaseDir: chromatic | |
| storybookBuildDir: chromatic/storybook-static |