Skip to content

Commit 3fe9fd9

Browse files
committed
Add caching to Rich Navigation step to reuse node_modules
1 parent 6b083b4 commit 3fe9fd9

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/rich-navigation.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,21 @@ jobs:
1010
runs-on: windows-latest
1111
steps:
1212
- uses: actions/checkout@v2
13+
14+
- uses: actions/cache@v2
15+
id: caching-stage
16+
name: Cache VS Code dependencies
17+
with:
18+
path: node_modules
19+
key: ${{ runner.os }}-dependencies-${{ hashfiles('yarn.lock') }}
20+
restore-keys: ${{ runner.os }}-dependencies-
21+
1322
- name: Install dependencies
23+
if: steps.caching-stage.outputs.cache-hit != 'true'
1424
run: yarn --frozen-lockfile
1525
env:
1626
CHILD_CONCURRENCY: 1
27+
1728
- uses: microsoft/RichCodeNavIndexer@v0.1
1829
with:
1930
languages: typescript

0 commit comments

Comments
 (0)