Skip to content

Commit 7333d79

Browse files
authored
Update build.yml
1 parent 2500f1e commit 7333d79

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ jobs:
2222
node-version: ${{ matrix.node-version }}
2323
- name: Cache node_modules
2424
uses: actions/cache@v2
25+
env:
26+
cache-name: cache-node-modules
2527
with:
26-
path: '**/node_modules'
27-
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
28+
path: node_modules
29+
key: ${{ runner.os }}-${{ env.cache-name }}-
2830
- name: Before deploy
2931
run: npm run docs

0 commit comments

Comments
 (0)