Commit 2034065
fix(ci): improve Chromatic workflow — path filter, auto-accept on main
Three fixes:
1. Run on push to main — establishes baselines when PRs merge.
Without this, Chromatic has no main baseline and every PR shows
all stories as "new changes".
2. autoAcceptChanges on main — automatically accepts all changes
as the new baseline when merging to main. No manual review needed
for the source of truth branch.
3. Narrow path filter — only trigger on component, style, theme,
storybook, and documentation changes. E2E tests, configs, and
other non-UI files no longer trigger Chromatic.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 4e5fa9f commit 2034065
1 file changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
4 | 13 | | |
5 | 14 | | |
6 | 15 | | |
7 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
8 | 21 | | |
9 | 22 | | |
10 | 23 | | |
| |||
14 | 27 | | |
15 | 28 | | |
16 | 29 | | |
17 | | - | |
| 30 | + | |
18 | 31 | | |
19 | 32 | | |
20 | 33 | | |
| |||
43 | 56 | | |
44 | 57 | | |
45 | 58 | | |
| 59 | + | |
0 commit comments