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 72
72
node-version : ' 20' # 'lts/*'
73
73
timeout-minutes : 5
74
74
75
+ # Cache dependencies:
76
+ - name : ' Cache dependencies'
77
+ # Pin action to full length commit SHA
78
+ uses : actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
79
+ id : cache
80
+ with :
81
+ path : |
82
+ ${{ github.workspace }}/node_modules
83
+ key : ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
84
+ restore-keys : |
85
+ ${{ runner.os }}-node-
86
+
75
87
# Install dependencies (accounting for possible network failures, etc, when installing node module dependencies):
76
88
- name : ' Install dependencies'
89
+ if : steps.cache.outputs.cache-hit != 'true'
77
90
run : |
78
91
make install-node-modules || make install-node-modules || make install-node-modules
79
92
timeout-minutes : 15
You can’t perform that action at this time.
0 commit comments