Skip to content

Commit dad2e8f

Browse files
authored
chore: prevent running chromatic on all merged PRs
As per discussion with @BrunoQuaresma, We want to reduce our chromatic costs and only want to run chromatic job on some merged PRs. This change will only run for PRs that target *.ts files.
1 parent dc8b731 commit dad2e8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ jobs:
543543
# REMARK: this is only used to build storybook and deploy it to Chromatic.
544544
runs-on: ubuntu-latest
545545
needs: changes
546-
if: needs.changes.outputs.ts == 'true' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main'
546+
if: needs.changes.outputs.ts == 'true' || needs.changes.outputs.ci == 'true'
547547
steps:
548548
- name: Checkout
549549
uses: actions/checkout@v3

0 commit comments

Comments
 (0)