File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 56
56
- name : Checkout source
57
57
uses : actions/checkout@v2
58
58
59
+ - name : Get yarn cache directory path
60
+ id : yarn-cache-dir-path
61
+ run : echo "::set-output name=dir::$(yarn cache dir)"
62
+
59
63
# Retain Node modules across builds; some packages download/build binaries
60
64
# here.
61
65
- name : Restore Node modules cache
@@ -74,11 +78,10 @@ jobs:
74
78
uses : actions/cache@v2
75
79
id : node-modules-cache-windows
76
80
with :
77
- path : |
78
- node_modules
79
- packages\*\node_modules
80
- packages\*\.vscode-test
81
- key : ${{ runner.os }}-${{ matrix.node-version }}-node-modules-1-${{ hashFiles('yarn.lock')}}
81
+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
82
+ key : ${{ runner.os }}-${{ matrix.node-version }}-yarn-${{ hashFiles('**/yarn.lock') }}
83
+ restore-keys : |
84
+ ${{ runner.os }}-${{ matrix.node-version }}-yarn-
82
85
83
86
- name : Set up Node.js ${{ matrix.node-version }}
84
87
uses : actions/setup-node@v1
You can’t perform that action at this time.
0 commit comments