diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index 9f07329ef..09b74deac 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -1,9 +1,13 @@ -name: "Chromatic Publish" +name: Chromatic -on: workflow_dispatch +on: + workflow_dispatch: + pull_request_review: + types: [submitted] jobs: test: + if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') runs-on: ubuntu-latest steps: - uses: actions/checkout@v1