File tree Expand file tree Collapse file tree 2 files changed +43
-27
lines changed Expand file tree Collapse file tree 2 files changed +43
-27
lines changed Original file line number Diff line number Diff line change @@ -34,25 +34,33 @@ jobs:
34
34
steps :
35
35
- uses : actions/checkout@v2
36
36
37
- - name : pnpm cache
38
- uses : actions/cache@v2
39
- env :
40
- cache-name : cache-pnpm-store
41
- with :
42
- path : ~/.pnpm-store
43
- key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node }}-${{ hashFiles('**/.package.json') }}
44
- restore-keys : |
45
- ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node }}-
46
-
47
37
- uses : actions/setup-node@v1
48
38
with :
49
39
node-version : ${{ matrix.node }}
50
40
51
- - name : pnpm setup
52
-
41
+ - name : Setup pnpm
42
+ id : pnpm-install
43
+ uses : pnpm/action-setup@v2
44
+ with :
45
+ version : 7
46
+ run_install : false
47
+
48
+ - name : Get pnpm store directory
49
+ id : pnpm-cache
50
+ shell : bash
51
+ run : |
52
+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
53
+
54
+ - uses : actions/cache@v3
55
+ name : Setup pnpm cache
53
56
with :
54
- version : 6.2.1
55
- run_install : true
57
+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
58
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
59
+ restore-keys : |
60
+ ${{ runner.os }}-pnpm-store-
61
+
62
+ - name : Install dependencies
63
+ run : pnpm i --frozen-lockfile
56
64
57
65
- run : pnpm run ci
58
66
Original file line number Diff line number Diff line change @@ -26,25 +26,33 @@ jobs:
26
26
steps :
27
27
- uses : actions/checkout@v2
28
28
29
- - name : pnpm cache
30
- uses : actions/cache@v2
31
- env :
32
- cache-name : cache-pnpm-store
33
- with :
34
- path : ~/.pnpm-store
35
- key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node }}-${{ hashFiles('**/.package.json') }}
36
- restore-keys : |
37
- ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node }}-
38
-
39
29
- name : Setup Node.js
40
30
uses : actions/setup-node@v2
41
31
with :
42
- node-version : 16
32
+ node-version : 18
43
33
44
34
- name : Setup pnpm
35
+ id : pnpm-install
45
36
uses : pnpm/action-setup@v2
46
37
with :
47
- version : 6.2.1
48
- run_install : true
38
+ version : 7
39
+ run_install : false
40
+
41
+ - name : Get pnpm store directory
42
+ id : pnpm-cache
43
+ shell : bash
44
+ run : |
45
+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
46
+
47
+ - uses : actions/cache@v3
48
+ name : Setup pnpm cache
49
+ with :
50
+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
51
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
52
+ restore-keys : |
53
+ ${{ runner.os }}-pnpm-store-
54
+
55
+ - name : Install dependencies
56
+ run : pnpm i --frozen-lockfile
49
57
50
58
- run : pnpm run eslint
You can’t perform that action at this time.
0 commit comments