Update chromatic CI trigger

This commit is contained in:
Charles Bochet 2023-07-31 18:20:45 -07:00
parent 8b8e4ac4a5
commit ba76cace3f

View File

@ -4,11 +4,11 @@ on:
push:
branches:
- main
pull_request_target:
types: [labeled, opened, edited]
issue_comment:
types: [created]
jobs:
chromatic-deployment:
if: ${{ contains(github.event.*.labels.*.name, 'run-chromatic') }} || github.event_name == 'push' }}
if: ${{ (github.event.issue.pull_request && contains(github.event.comment.body, '@chromatic')) || github.event_name == 'push' }}
runs-on: ubuntu-latest
env:
REACT_APP_SERVER_BASE_URL: http://127.0.0.1:3000