@@ -11,14 +11,14 @@ jobs:
11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- name : checkout
14
- uses : actions/checkout@master
14
+ uses : actions/checkout@v4
15
15
16
- - uses : actions/setup-node@v1
16
+ - uses : actions/setup-node@v4
17
17
with :
18
- node-version : ' 16 '
18
+ node-version : ' 20 '
19
19
20
20
- name : cache package-lock.json
21
- uses : actions/cache@v2
21
+ uses : actions/cache@v4
22
22
with :
23
23
path : package-temp-dir
24
24
key : lock-${{ github.sha }}
34
34
cp package-lock.json package-temp-dir
35
35
- name : cache node_modules
36
36
id : node_modules_cache_id
37
- uses : actions/cache@v2
37
+ uses : actions/cache@v4
38
38
with :
39
39
path : node_modules
40
40
key : node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
@@ -47,16 +47,16 @@ jobs:
47
47
runs-on : ubuntu-latest
48
48
steps :
49
49
- name : checkout
50
- uses : actions/checkout@master
50
+ uses : actions/checkout@v4
51
51
52
52
- name : restore cache from package-lock.json
53
- uses : actions/cache@v2
53
+ uses : actions/cache@v4
54
54
with :
55
55
path : package-temp-dir
56
56
key : lock-${{ github.sha }}
57
57
58
58
- name : restore cache from node_modules
59
- uses : actions/cache@v2
59
+ uses : actions/cache@v4
60
60
with :
61
61
path : node_modules
62
62
key : node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
@@ -66,20 +66,43 @@ jobs:
66
66
67
67
needs : setup
68
68
69
+ tsc :
70
+ runs-on : ubuntu-latest
71
+ steps :
72
+ - name : checkout
73
+ uses : actions/checkout@v4
74
+
75
+ - name : restore cache from package-lock.json
76
+ uses : actions/cache@v4
77
+ with :
78
+ path : package-temp-dir
79
+ key : lock-${{ github.sha }}
80
+
81
+ - name : restore cache from node_modules
82
+ uses : actions/cache@v4
83
+ with :
84
+ path : node_modules
85
+ key : node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
86
+
87
+ - name : tsc
88
+ run : npm run tsc
89
+
90
+ needs : setup
91
+
69
92
compile :
70
93
runs-on : ubuntu-latest
71
94
steps :
72
95
- name : checkout
73
- uses : actions/checkout@master
96
+ uses : actions/checkout@v4
74
97
75
98
- name : restore cache from package-lock.json
76
- uses : actions/cache@v2
99
+ uses : actions/cache@v4
77
100
with :
78
101
path : package-temp-dir
79
102
key : lock-${{ github.sha }}
80
103
81
104
- name : restore cache from node_modules
82
- uses : actions/cache@v2
105
+ uses : actions/cache@v4
83
106
with :
84
107
path : node_modules
85
108
key : node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
@@ -93,16 +116,16 @@ jobs:
93
116
runs-on : ubuntu-latest
94
117
steps :
95
118
- name : checkout
96
- uses : actions/checkout@master
119
+ uses : actions/checkout@v4
97
120
98
121
- name : restore cache from package-lock.json
99
- uses : actions/cache@v2
122
+ uses : actions/cache@v4
100
123
with :
101
124
path : package-temp-dir
102
125
key : lock-${{ github.sha }}
103
126
104
127
- name : restore cache from node_modules
105
- uses : actions/cache@v2
128
+ uses : actions/cache@v4
106
129
with :
107
130
path : node_modules
108
131
key : node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
0 commit comments