docs: update 3rd party licenses #26360
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: [rc, dev] | |
| types: [opened, labeled, synchronize] | |
| jobs: | |
| run: | |
| if: > | |
| github.event_name == 'pull_request' && | |
| github.event.action == 'labeled' && | |
| github.event.label.name == 'pr ready for visual snapshots' && | |
| !contains(github.event.pull_request.labels.*.name, 'skip visual snapshots') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: package.json | |
| - name: Build storybook | |
| env: | |
| STORYBOOK_SCREENSHOT_TEST_BUILD: true | |
| CHROMATIC_DIFF_THRESHOLD: ${{ secrets.CHROMATIC_DIFF_THRESHOLD }} | |
| run: | | |
| npm install | |
| npm --workspace="packages/design-tokens" run build | |
| npm --workspace="packages/tailwind-preset" run build | |
| npm --workspace="packages/ui-icons" run build | |
| npm --workspace="packages/components" run build-storybook | |
| - name: Publish to Chromatic | |
| uses: chromaui/action@v13 | |
| with: | |
| projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
| zip: true | |
| exitOnceUploaded: true | |
| autoAcceptChanges: ${{ github.base_ref || github.ref_name }} | |
| workingDir: packages/components | |
| storybookBuildDir: docs | |
| env: | |
| STORYBOOK_SCREENSHOT_TEST_BUILD: true | |
| CHROMATIC_DIFF_THRESHOLD: ${{ secrets.CHROMATIC_DIFF_THRESHOLD }} | |
| skip: | |
| if: > | |
| github.event_name == 'pull_request' && | |
| contains(github.event.pull_request.labels.*.name, 'skip visual snapshots') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Skip Chromatic | |
| uses: guibranco/github-status-action-v2@v1 | |
| with: | |
| authToken: ${{ secrets.GITHUB_TOKEN }} | |
| context: UI Tests | |
| description: Chromatic run skipped | |
| state: success | |
| sha: ${{ github.event.pull_request.head.sha || github.sha }} |