File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+ pull_request :
7
+ branches : [ main ]
8
+ workflow_dispatch :
9
+
10
+ jobs :
11
+ lint-and-build :
12
+ runs-on : ubuntu-24.04
13
+
14
+ strategy :
15
+ matrix :
16
+ node-version : [20, 22, 24]
17
+
18
+ steps :
19
+ - name : Checkout code
20
+ uses : actions/checkout@v4
21
+
22
+ - name : Use Node.js ${{ matrix.node-version }}
23
+ uses : actions/setup-node@v4
24
+ with :
25
+ node-version : ${{ matrix.node-version }}
26
+ cache : ' npm'
27
+
28
+ - name : Install dependencies
29
+ run : npm ci
30
+
31
+ - name : Run ESLint
32
+ run : npm run lint
33
+
34
+ - name : Build Storybook
35
+ run : npm run storybook:build
36
+
37
+ - name : Upload Storybook build artifacts
38
+ uses : actions/upload-artifact@v4
39
+ if : matrix.node-version == 20
40
+ with :
41
+ name : storybook-build
42
+ path : storybook-static/
43
+ retention-days : 30
You can’t perform that action at this time.
0 commit comments