Skip to content

Commit f6545f3

Browse files
authored
Engineering - fix built-in extension cache population (microsoft#255963)
1 parent 092b63b commit f6545f3

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

.github/workflows/pr-node-modules.yml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ jobs:
3232
path: .build/node_modules_cache
3333
key: "node_modules-compile-${{ hashFiles('.build/packagelockhash') }}"
3434

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+
3539
- name: Install build tools
3640
if: steps.cache-node-modules.outputs.cache-hit != 'true'
3741
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:
109113
path: .build/node_modules_cache
110114
key: "node_modules-linux-${{ hashFiles('.build/packagelockhash') }}"
111115

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-
129116
- name: Install dependencies
130117
if: steps.cache-node-modules.outputs.cache-hit != 'true'
131118
run: |

0 commit comments

Comments
 (0)