8
8
name : Prepare
9
9
runs-on : ubuntu-latest
10
10
steps :
11
- - uses : actions/checkout@v4
12
11
- name : Use Node.js
13
12
uses : actions/setup-node@v4
14
13
with :
15
- node-version-file : ' .nvmrc'
14
+ node-version : ' lts/*'
15
+ - name : Install Yarn
16
+ run : corepack enable
17
+ - uses : actions/checkout@v4
18
+ - name : Use Node.js and install dependencies
19
+ uses : actions/setup-node@v4
20
+ with :
21
+ node-version : ' lts/*'
16
22
cache : ' yarn'
17
23
- name : Install Yarn dependencies
18
24
run : yarn --immutable
@@ -23,11 +29,17 @@ jobs:
23
29
needs :
24
30
- prepare
25
31
steps :
32
+ - name : Use Node.js
33
+ uses : actions/setup-node@v4
34
+ with :
35
+ node-version : ' lts/*'
36
+ - name : Install Yarn
37
+ run : corepack enable
26
38
- uses : actions/checkout@v4
27
39
- name : Use Node.js
28
40
uses : actions/setup-node@v4
29
41
with :
30
- node-version-file : ' .nvmrc '
42
+ node-version : ' lts/* '
31
43
cache : ' yarn'
32
44
- run : yarn --immutable --immutable-cache
33
45
- run : yarn build
@@ -45,11 +57,17 @@ jobs:
45
57
needs :
46
58
- prepare
47
59
steps :
60
+ - name : Use Node.js
61
+ uses : actions/setup-node@v4
62
+ with :
63
+ node-version : ' lts/*'
64
+ - name : Install Yarn
65
+ run : corepack enable
48
66
- uses : actions/checkout@v4
49
67
- name : Use Node.js
50
68
uses : actions/setup-node@v4
51
69
with :
52
- node-version-file : ' .nvmrc '
70
+ node-version : ' lts/* '
53
71
cache : ' yarn'
54
72
- run : yarn --immutable --immutable-cache
55
73
- run : yarn lint
76
94
matrix :
77
95
node-version : [18.x, 20.x]
78
96
steps :
97
+ - name : Use Node.js
98
+ uses : actions/setup-node@v4
99
+ with :
100
+ node-version : ${{ matrix.node-version }}
101
+ - name : Install Yarn
102
+ run : corepack enable
79
103
- uses : actions/checkout@v4
80
104
- name : Use Node.js ${{ matrix.node-version }}
81
105
uses : actions/setup-node@v4
@@ -101,6 +125,12 @@ jobs:
101
125
matrix :
102
126
node-version : [18.x, 20.x]
103
127
steps :
128
+ - name : Use Node.js
129
+ uses : actions/setup-node@v4
130
+ with :
131
+ node-version : ${{ matrix.node-version }}
132
+ - name : Install Yarn
133
+ run : corepack enable
104
134
- uses : actions/checkout@v4
105
135
- name : Use Node.js ${{ matrix.node-version }}
106
136
uses : actions/setup-node@v4
0 commit comments