From 913d75a79234debd8b4a246c9f721d393a522be7 Mon Sep 17 00:00:00 2001 From: G r e y Date: Tue, 24 May 2022 01:33:48 -0400 Subject: [PATCH 1/2] ci: limit chromatic to site --- .github/workflows/chromatic.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/chromatic.yaml b/.github/workflows/chromatic.yaml index e824b320a4739..dd7b3821b87f3 100644 --- a/.github/workflows/chromatic.yaml +++ b/.github/workflows/chromatic.yaml @@ -8,12 +8,16 @@ name: chromatic on: push: + paths: + - site/** branches: - main tags: - "*" pull_request: + paths: + - site/** jobs: deploy: From 22e7533f5b64253f3505a517bc799cfc95c3a4f9 Mon Sep 17 00:00:00 2001 From: G r e y Date: Tue, 24 May 2022 01:42:44 -0400 Subject: [PATCH 2/2] Add Comment --- .github/workflows/chromatic.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/chromatic.yaml b/.github/workflows/chromatic.yaml index dd7b3821b87f3..083730a8bd4d8 100644 --- a/.github/workflows/chromatic.yaml +++ b/.github/workflows/chromatic.yaml @@ -6,6 +6,10 @@ # SEE: https://www.chromatic.com/docs/ci name: chromatic +# REMARK: We want Chromatic to run whenever anything in the FE or its deps +# change, including node_modules and generated code. Currently, all +# node_modules and generated code live in site. If any of these are +# hoisted, we'll want to adjust the paths filter to account for them. on: push: paths: