File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -120,8 +120,21 @@ jobs:
120
120
node-version : 20 # 'lts/*'
121
121
timeout-minutes : 5
122
122
123
+ # Cache dependencies:
124
+ - name : ' Cache dependencies'
125
+ # Pin action to full length commit SHA
126
+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
127
+ id : cache
128
+ with :
129
+ path : |
130
+ ${{ github.workspace }}/node_modules
131
+ key : ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
132
+ restore-keys : |
133
+ ${{ runner.os }}-node-
134
+
123
135
# Install dependencies (accounting for possible network failures, etc, when installing node module dependencies):
124
136
- name : ' Install dependencies'
137
+ if : steps.cache.outputs.cache-hit != 'true'
125
138
run : |
126
139
make install-node-modules || make install-node-modules || make install-node-modules
127
140
timeout-minutes : 15
You can’t perform that action at this time.
0 commit comments