mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
Engineering - improve node_modules cache action (#254076)
This commit is contained in:
13
.github/workflows/pr-node-modules.yml
vendored
13
.github/workflows/pr-node-modules.yml
vendored
@@ -35,10 +35,6 @@ jobs:
|
||||
path: .build/node_modules_cache
|
||||
key: "node_modules-${{ hashFiles('.build/packagelockhash') }}"
|
||||
|
||||
- name: Extract node_modules cache
|
||||
if: steps.cache-node-modules.outputs.cache-hit == 'true'
|
||||
run: tar -xzf .build/node_modules_cache/cache.tgz
|
||||
|
||||
- name: Install build dependencies
|
||||
if: steps.cache-node-modules.outputs.cache-hit != 'true'
|
||||
working-directory: build
|
||||
@@ -113,10 +109,6 @@ jobs:
|
||||
path: .build/node_modules_cache
|
||||
key: "node_modules-${{ hashFiles('.build/packagelockhash') }}"
|
||||
|
||||
- name: Extract node_modules cache
|
||||
if: steps.cache-node-modules.outputs.cache-hit == 'true'
|
||||
run: tar -xzf .build/node_modules_cache/cache.tgz
|
||||
|
||||
- name: Install dependencies
|
||||
if: steps.cache-node-modules.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
@@ -183,11 +175,6 @@ jobs:
|
||||
path: .build/node_modules_cache
|
||||
key: "node_modules-${{ hashFiles('.build/packagelockhash') }}"
|
||||
|
||||
- name: Extract node_modules cache
|
||||
if: steps.node-modules-cache.outputs.cache-hit == 'true'
|
||||
shell: pwsh
|
||||
run: 7z.exe x .build/node_modules_cache/cache.7z -aoa
|
||||
|
||||
- name: Install dependencies
|
||||
if: steps.node-modules-cache.outputs.cache-hit != 'true'
|
||||
shell: pwsh
|
||||
|
||||
Reference in New Issue
Block a user