Merge pull request #6 from andresin87/refactor #12
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 | |
| jobs: | |
| chromatic: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@v2 | |
| with: | |
| version: 9.11.0 | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Publish to Chromatic | |
| uses: chromaui/action@latest | |
| with: | |
| # ⚠️ Make sure to configure a `CHROMATIC_PROJECT_TOKEN` repository secret | |
| projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} |