refactor: chromatic yml env add (#172) #5
Workflow file for this run
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 Deployment" | |
| on: push | |
| jobs: | |
| chromatic-deployment: | |
| name: Chromatic | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v1 | |
| - name: Install dependencies | |
| run: yarn | |
| - name: Publish to Chromatic | |
| id: chromatic | |
| uses: chromaui/action@v1 | |
| with: | |
| exitZeroOnChanges: true | |
| autoAcceptChanges: true | |
| projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
| github-bot-storybook: | |
| runs-on: ubuntu-latest | |
| needs: [chromatic-deployment] | |
| steps: | |
| - name: Create comment PR | |
| uses: thollander/actions-comment-pull-request@v2 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.TOKEN }} | |
| with: | |
| comment_tag: ${{github.event.number}}-storybook | |
| message: "storybook: ${{steps.chromatic.outputs.storybookUrl }}" |