File tree 1 file changed +21
-4
lines changed
1 file changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ concurrency:
14
14
group : pages
15
15
cancel-in-progress : false
16
16
17
+ env :
18
+ STORE_PATH : ' '
19
+
17
20
jobs :
18
21
build :
19
22
runs-on : ubuntu-latest
@@ -25,14 +28,28 @@ jobs:
25
28
with :
26
29
node-version : ' lts/*'
27
30
28
- - name : Setup @antfu/ni
29
- run : npm i -g @antfu/ni
31
+ - uses : pnpm/action-setup@v2
32
+ with :
33
+ run_install : false
34
+
35
+ - name : Obtain pnpm store directory
36
+ shell : bash
37
+ run : |
38
+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
39
+
40
+ - name : Configure pnpm cache
41
+ uses : actions/cache@v4
42
+ with :
43
+ path : ${{ env.STORE_PATH }}
44
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
45
+ restore-keys : |
46
+ ${{ runner.os }}-pnpm-store-
30
47
31
48
- name : Install dependencies
32
- run : ni
49
+ run : pnpm install --frozen-lockfile
33
50
34
51
- name : Build
35
- run : nr packages:build-base
52
+ run : pnpm run packages:build-base
36
53
37
54
- name : Setup Pages
38
55
uses : actions/configure-pages@v4
You can’t perform that action at this time.
0 commit comments