File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : 📸 Chromatic Storybook
3
+
4
+ on :
5
+ push :
6
+ branches : [main]
7
+ paths :
8
+ - src/components/**
9
+ - .storybook/**
10
+ - package.json
11
+ - pnpm-lock.yaml
12
+ pull_request :
13
+ paths :
14
+ - src/components/**
15
+ - .storybook/**
16
+ - package.json
17
+ - pnpm-lock.yaml
18
+
19
+ permissions : {}
20
+
21
+ jobs :
22
+ chromatic :
23
+ name : 📸 Chromatic Storybook
24
+ runs-on : ubuntu-latest
25
+ permissions :
26
+ contents : read
27
+ steps :
28
+ - name : ⬇️ Checkout repository
29
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
30
+ with :
31
+ fetch-depth : 0
32
+
33
+ - name : 🏗️ Setup Node.js
34
+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
35
+ with :
36
+ node-version : 20
37
+
38
+ - name : 📦 Install PNPM
39
+ run : npm install -g pnpm
40
+
41
+ - name : 📦 Install dependencies
42
+ run : pnpm install
43
+
44
+ - name : 📸 Run Chromatic
45
+ uses : chromaui/action@e8cc4c31775280b175a3c440076c00d19a9014d7 # v11.28.2
46
+ with :
47
+ projectToken : ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
You can’t perform that action at this time.
0 commit comments