@@ -3,27 +3,59 @@ name: Build
33on : [push]
44
55jobs :
6- release :
6+ lint :
77 runs-on : ubuntu-latest
88 if : " !contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
9+ strategy :
10+ matrix :
11+ node-version : [20.19, 22.12]
912 steps :
10- - uses : actions/checkout@v4
13+ - name : Checkout
14+ uses : actions/checkout@v4
15+ with :
16+ fetch-depth : 0
17+
18+ - name : Install pnpm
19+ uses : pnpm/action-setup@v4
20+
21+ - name : Use Node.js ${{ matrix.node-version }}
22+ uses : actions/setup-node@v4
23+ with :
24+ node-version : ${{ matrix.node-version }}
25+ cache : ' pnpm'
26+
27+ - name : Install dependencies
28+ run : pnpm install
29+
30+ - name : Check for linter errors
31+ run : pnpm lint
32+
33+ build :
34+ runs-on : ubuntu-latest
35+ if : " !contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
36+ strategy :
37+ matrix :
38+ node-version : [20.19, 22.12]
39+ steps :
40+ - name : Checkout
41+ uses : actions/checkout@v4
42+ with :
43+ fetch-depth : 0
1144
12- - name : Prepare repository
13- run : git fetch --unshallow --tags
45+ - name : Install pnpm
46+ uses : pnpm/action-setup@v4
1447
15- - name : Use Node.js 20.x
48+ - name : Use Node.js ${{ matrix.node-version }}
1649 uses : actions/setup-node@v4
1750 with :
18- node-version : 20.x
51+ node-version : ${{ matrix.node-version }}
52+ cache : ' pnpm'
1953
2054 - name : Install dependencies
21- run : npm install --ignore-scripts
55+ run : pnpm install
2256
23- - name : Build
24- run : |
25- npm run build
57+ - name : Build addon
58+ run : pnpm build
2659
2760 - name : Build Storybook
28- run : |
29- npm run build-storybook
61+ run : pnpm build-storybook
0 commit comments