RadioGroup Figma λμμΈ λΆμΌμΉ μμ #2362
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: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: [labeled, synchronize] | |
| jobs: | |
| pre-chromatic: | |
| if: github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'ui') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - id: gen_url | |
| run: | | |
| # Use commit hash instead of branch name to avoid 37-character limit | |
| URL=https://${{ github.sha }}--675790d317ba346348aa3490.chromatic.com | |
| echo "url=$URL" >> $GITHUB_OUTPUT | |
| outputs: | |
| url: ${{ steps.gen_url.outputs.url }} | |
| chromatic: | |
| if: github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'ui') | |
| environment: | |
| name: chromatic | |
| url: ${{ needs.pre-chromatic.outputs.url }} | |
| runs-on: ubuntu-latest | |
| needs: pre-chromatic | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| - uses: oven-sh/setup-bun@v2 | |
| - run: bun install | |
| - uses: chromaui/action@latest | |
| with: | |
| projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
| onlyChanged: true | |
| env: | |
| CHROMATIC_BRANCH: ${{ github.event.pull_request.head.ref || github.ref_name }} | |
| CHROMATIC_SHA: ${{ github.event.pull_request.head.sha || github.sha }} | |
| CHROMATIC_SLUG: ${{ github.repository }} |