File tree 1 file changed +21
-11
lines changed
1 file changed +21
-11
lines changed Original file line number Diff line number Diff line change @@ -12,35 +12,45 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
strategy :
14
14
matrix :
15
- node : ['14 .x', '16 .x']
15
+ node : ['18 .x', '20 .x']
16
16
17
17
steps :
18
18
- name : Checkout repo
19
- uses : actions/checkout@v2
19
+ uses : actions/checkout@v4
20
20
21
- - name : Use Node ${{ matrix.node }}
22
- uses : actions/setup-node@v1
21
+ - name : Setup PNPM
22
+ uses : pnpm/action-setup@v4
23
+
24
+ - name : Install Node.js ${{ matrix.node }}
25
+ uses : actions/setup-node@v4
23
26
with :
24
27
node-version : ${{ matrix.node }}
25
-
26
- - name : Install deps and build (with cache)
27
- uses : bahmutov/npm-install@v1
28
+ cache : " pnpm"
29
+
30
+ - name : Install dependencies
31
+ shell : bash
32
+ run : pnpm install
28
33
29
34
- name : Lint
30
- run : yarn lint --quiet
35
+ run : pnpm lint --quiet
31
36
32
37
- name : Test
33
- run : yarn test:coverage
38
+ run : pnpm test:coverage
34
39
35
40
- name : Build
36
- run : yarn build
41
+ run : pnpm build
37
42
38
43
size :
39
44
runs-on : ubuntu-latest
40
45
env :
41
46
CI_JOB_NUMBER : 1
42
47
steps :
43
- - uses : actions/checkout@v1
48
+ - name : Checkout repo
49
+ uses : actions/checkout@v4
50
+
51
+ - name : Setup PNPM
52
+ uses : pnpm/action-setup@v4
53
+
44
54
- uses : andresz1/size-limit-action@v1
45
55
with :
46
56
github_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments