Skip to content

Commit 2a70efb

Browse files
talissoncostaclaude
andcommitted
fix(ci): improve Chromatic workflow — auto-accept on main, path filter
- Run on push to main to establish baselines (was PR-only) - autoAcceptChanges on main — no manual review needed for source of truth - Narrow path filter for main push (components, styles, storybook only) - Broad path filter for PRs (frontend/**) to catch indirect regressions - Fix if condition to handle both push and pull_request events Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 807185b commit 2a70efb

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/frontend-chromatic.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
name: Frontend Chromatic
22

33
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- frontend/web/components/**
8+
- frontend/web/styles/**
9+
- frontend/common/theme/**
10+
- frontend/documentation/**
11+
- frontend/.storybook/**
12+
- .github/workflows/frontend-chromatic.yml
413
pull_request:
514
types: [opened, synchronize, reopened, ready_for_review]
615
paths:
@@ -14,7 +23,7 @@ jobs:
1423
chromatic:
1524
name: Chromatic
1625
runs-on: ubuntu-latest
17-
if: github.event.pull_request.draft == false
26+
if: github.event_name == 'push' || github.event.pull_request.draft == false
1827

1928
defaults:
2029
run:
@@ -43,3 +52,4 @@ jobs:
4352
exitZeroOnChanges: true
4453
exitOnceUploaded: true
4554
onlyChanged: true
55+
autoAcceptChanges: main

0 commit comments

Comments
 (0)