File tree Expand file tree Collapse file tree 1 file changed +4
-17
lines changed Expand file tree Collapse file tree 1 file changed +4
-17
lines changed Original file line number Diff line number Diff line change 32
32
path : .build/node_modules_cache
33
33
key : " node_modules-compile-${{ hashFiles('.build/packagelockhash') }}"
34
34
35
+ - name : Extract node_modules cache
36
+ if : steps.cache-node-modules.outputs.cache-hit == 'true'
37
+ run : tar -xzf .build/node_modules_cache/cache.tgz
38
+
35
39
- name : Install build tools
36
40
if : steps.cache-node-modules.outputs.cache-hit != 'true'
37
41
run : sudo apt update -y && sudo apt install -y build-essential pkg-config libx11-dev libx11-xcb-dev libxkbfile-dev libnotify-bin libkrb5-dev
@@ -109,23 +113,6 @@ jobs:
109
113
path : .build/node_modules_cache
110
114
key : " node_modules-linux-${{ hashFiles('.build/packagelockhash') }}"
111
115
112
- - name : Install build dependencies
113
- if : steps.cache-node-modules.outputs.cache-hit != 'true'
114
- working-directory : build
115
- run : |
116
- set -e
117
-
118
- for i in {1..5}; do # try 5 times
119
- npm ci && break
120
- if [ $i -eq 5 ]; then
121
- echo "Npm install failed too many times" >&2
122
- exit 1
123
- fi
124
- echo "Npm install failed $i, trying again..."
125
- done
126
- env :
127
- GITHUB_TOKEN : ${{ secrets.VSCODE_OSS }}
128
-
129
116
- name : Install dependencies
130
117
if : steps.cache-node-modules.outputs.cache-hit != 'true'
131
118
run : |
You can’t perform that action at this time.
0 commit comments