File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -120,8 +120,21 @@ jobs:
120120 node-version : 20 # 'lts/*'
121121 timeout-minutes : 5
122122
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+
123135 # Install dependencies (accounting for possible network failures, etc, when installing node module dependencies):
124136 - name : ' Install dependencies'
137+ if : steps.cache.outputs.cache-hit != 'true'
125138 run : |
126139 make install-node-modules || make install-node-modules || make install-node-modules
127140 timeout-minutes : 15
You can’t perform that action at this time.
0 commit comments