Skip to content

refactor: chromatic yml env add (#172) #5

refactor: chromatic yml env add (#172)

refactor: chromatic yml env add (#172) #5

Workflow file for this run

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 }}"