This repository was archived by the owner on Sep 16, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +21
-9
lines changed Expand file tree Collapse file tree 1 file changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -19,23 +19,35 @@ jobs:
19
19
20
20
# Steps represent a sequence of tasks that will be executed as part of the job
21
21
steps :
22
- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23
- - uses : actions/checkout@v3
22
+ - name : Checkout
23
+ uses : actions/checkout@v3
24
+
25
+ - name : Install Node.js
26
+ uses : actions/setup-node@v3
27
+ with :
28
+ node-version : ' 18'
29
+
30
+ - name : Install pnpm
31
+ uses : pnpm/action-setup@v2
32
+ id : pnpm-install
33
+ with :
34
+ version : ' 8'
35
+ run_install : false
36
+
37
+ - name : Get pnpm store directory
38
+ id : pnpm-cache
39
+ shell : bash
40
+ run : |
41
+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
24
42
25
43
- name : Cache
26
44
uses : actions/cache@v3
27
45
env :
28
46
cache-name : cache-node-modules-v3
29
47
with :
30
- path : ~/.local/share/ pnpm/store
48
+ path : ${{ steps. pnpm-cache.outputs.STORE_PATH }}
31
49
key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('package.json') }}
32
50
33
- - name : Use Node.js
34
- uses : actions/setup-node@v3
35
- with :
36
- node-version : ' 18'
37
- - name : Install pnpm
38
- run : npm i -g pnpm
39
51
- name : Install dependencies
40
52
run : pnpm install
41
53
You can’t perform that action at this time.
0 commit comments