Skip to content

Commit db4e578

Browse files
fix(ci): improve Chromatic workflow (#7156)
1 parent 807185b commit db4e578

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)