@@ -11,14 +11,14 @@ jobs:
1111 runs-on : ubuntu-latest
1212 steps :
1313 - name : checkout
14- uses : actions/checkout@master
14+ uses : actions/checkout@v4
1515
16- - uses : actions/setup-node@v1
16+ - uses : actions/setup-node@v4
1717 with :
18- node-version : ' 16 '
18+ node-version : ' 20 '
1919
2020 - name : cache package-lock.json
21- uses : actions/cache@v2
21+ uses : actions/cache@v4
2222 with :
2323 path : package-temp-dir
2424 key : lock-${{ github.sha }}
3434 cp package-lock.json package-temp-dir
3535 - name : cache node_modules
3636 id : node_modules_cache_id
37- uses : actions/cache@v2
37+ uses : actions/cache@v4
3838 with :
3939 path : node_modules
4040 key : node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
@@ -47,16 +47,16 @@ jobs:
4747 runs-on : ubuntu-latest
4848 steps :
4949 - name : checkout
50- uses : actions/checkout@master
50+ uses : actions/checkout@v4
5151
5252 - name : restore cache from package-lock.json
53- uses : actions/cache@v2
53+ uses : actions/cache@v4
5454 with :
5555 path : package-temp-dir
5656 key : lock-${{ github.sha }}
5757
5858 - name : restore cache from node_modules
59- uses : actions/cache@v2
59+ uses : actions/cache@v4
6060 with :
6161 path : node_modules
6262 key : node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
@@ -66,20 +66,43 @@ jobs:
6666
6767 needs : setup
6868
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+
6992 compile :
7093 runs-on : ubuntu-latest
7194 steps :
7295 - name : checkout
73- uses : actions/checkout@master
96+ uses : actions/checkout@v4
7497
7598 - name : restore cache from package-lock.json
76- uses : actions/cache@v2
99+ uses : actions/cache@v4
77100 with :
78101 path : package-temp-dir
79102 key : lock-${{ github.sha }}
80103
81104 - name : restore cache from node_modules
82- uses : actions/cache@v2
105+ uses : actions/cache@v4
83106 with :
84107 path : node_modules
85108 key : node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
@@ -93,16 +116,16 @@ jobs:
93116 runs-on : ubuntu-latest
94117 steps :
95118 - name : checkout
96- uses : actions/checkout@master
119+ uses : actions/checkout@v4
97120
98121 - name : restore cache from package-lock.json
99- uses : actions/cache@v2
122+ uses : actions/cache@v4
100123 with :
101124 path : package-temp-dir
102125 key : lock-${{ github.sha }}
103126
104127 - name : restore cache from node_modules
105- uses : actions/cache@v2
128+ uses : actions/cache@v4
106129 with :
107130 path : node_modules
108131 key : node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
0 commit comments