File tree Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -25,17 +25,26 @@ jobs:
25
25
- name : checkout
26
26
uses : actions/checkout@master
27
27
28
- - name : Get yarn cache directory path
29
- id : yarn-cache-dir-path
30
- run : echo "::set-output name=dir::$(yarn cache dir)"
28
+ - uses : pnpm/action-setup@v2
29
+ name : Install pnpm
30
+ id : pnpm-install
31
+ with :
32
+ version : 7
33
+ run_install : false
34
+
35
+ - name : Get pnpm store directory
36
+ id : pnpm-cache
37
+ shell : bash
38
+ run : |
39
+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
31
40
32
- - uses : actions/cache@v2
33
- id : yarn- cache
41
+ - uses : actions/cache@v3
42
+ name : Setup pnpm cache
34
43
with :
35
- path : ${{ steps.yarn -cache-dir-path .outputs.dir }}
36
- key : ${{ runner.os }}-yarn- ${{ hashFiles('**/yarn. lock') }}
44
+ path : ${{ steps.pnpm -cache.outputs.STORE_PATH }}
45
+ key : ${{ runner.os }}-pnpm-store- ${{ hashFiles('**/pnpm- lock.yaml ') }}
37
46
restore-keys : |
38
- ${{ runner.os }}-yarn -
47
+ ${{ runner.os }}-pnpm-store -
39
48
40
49
- name : Install dependencies
41
50
if : steps.cache.outputs.cache-hit != 'true'
You can’t perform that action at this time.
0 commit comments