File tree Expand file tree Collapse file tree 3 files changed +12
-18
lines changed Expand file tree Collapse file tree 3 files changed +12
-18
lines changed Original file line number Diff line number Diff line change @@ -48,10 +48,11 @@ jobs:
48
48
with :
49
49
# pulls all commits (needed for chromatic to find baselines)
50
50
fetch-depth : ' 0'
51
- - name : Use Node.js 20
51
+ - name : Use Node.js
52
52
uses : actions/setup-node@v4
53
53
with :
54
- node-version : 20
54
+ node-version-file : .nvmrc
55
+ check-latest : true
55
56
cache : ' npm'
56
57
- name : Install dependencies
57
58
run : npm install
Original file line number Diff line number Diff line change @@ -45,10 +45,11 @@ jobs:
45
45
restore-keys : |
46
46
${{ runner.os }}-cache-
47
47
48
- - name : Use Node.js 20
48
+ - name : Use Node.js
49
49
uses : actions/setup-node@v4
50
50
with :
51
- node-version : 20
51
+ node-version-file : .nvmrc
52
+ check-latest : true
52
53
cache : ' npm'
53
54
54
55
- run : npm -v
Original file line number Diff line number Diff line change 17
17
jobs :
18
18
test :
19
19
runs-on : ubuntu-latest
20
-
21
- strategy :
22
- matrix :
23
- node-version : [20]
24
-
25
20
steps :
26
21
- uses : actions/checkout@v4
27
- - name : Use Node.js ${{ matrix.node-version }}
22
+ - name : Use Node.js
28
23
uses : actions/setup-node@v4
29
24
with :
30
- node-version : ${{ matrix.node-version }}
25
+ node-version-file : .nvmrc
26
+ check-latest : true
31
27
cache : ' npm'
32
28
- run : npm install
33
29
- run : npm run lint
37
33
38
34
build :
39
35
runs-on : ubuntu-latest
40
-
41
- strategy :
42
- matrix :
43
- node-version : [20]
44
-
45
36
steps :
46
37
- uses : actions/checkout@v4
47
38
- name : Cache build setup
@@ -51,10 +42,11 @@ jobs:
51
42
key : ${{ runner.os }}-cache-${{ github.sha }}
52
43
restore-keys : |
53
44
${{ runner.os }}-cache-
54
- - name : Use Node.js ${{ matrix.node-version }}
45
+ - name : Use Node.js
55
46
uses : actions/setup-node@v4
56
47
with :
57
- node-version : ${{ matrix.node-version }}
48
+ node-version-file : .nvmrc
49
+ check-latest : true
58
50
cache : ' npm'
59
51
- run : npm install
60
52
- run : npm run build:prod
You can’t perform that action at this time.
0 commit comments