Skip to content
This repository was archived by the owner on May 11, 2022. It is now read-only.

Commit 490c35b

Browse files
committed
FUSETOOLS2-1198 - use built-in caching mechanism for npm
Signed-off-by: Aurélien Pupier <[email protected]>
1 parent 78df56e commit 490c35b

File tree

2 files changed

+3
-21
lines changed

2 files changed

+3
-21
lines changed

.github/workflows/macos-test.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,10 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v2
19-
- uses: actions/setup-node@v1
19+
- uses: actions/setup-node@v2
2020
with:
2121
node-version: '12'
22-
- name: Get npm cache directory
23-
id: npm-cache
24-
run: |
25-
echo "::set-output name=dir::$(npm config get cache)"
26-
- uses: actions/cache@v2
27-
with:
28-
path: ${{ steps.npm-cache.outputs.dir }}
29-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
30-
restore-keys: |
31-
${{ runner.os }}-node-
22+
cache: 'npm'
3223
- name: Install global dependencies
3324
run: npm install -g typescript vsce
3425
- name: npm-ci

.github/workflows/windows-test.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,7 @@ jobs:
1919
- uses: actions/setup-node@v1
2020
with:
2121
node-version: '12'
22-
- name: Get npm cache directory
23-
id: npm-cache
24-
run: |
25-
echo "::set-output name=dir::$(npm config get cache)"
26-
- uses: actions/cache@v2
27-
with:
28-
path: ${{ steps.npm-cache.outputs.dir }}
29-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
30-
restore-keys: |
31-
${{ runner.os }}-node-
22+
cache: 'npm'
3223
- name: Install global dependencies
3324
run: npm install -g typescript vsce
3425
- name: npm-ci

0 commit comments

Comments
 (0)