File tree Expand file tree Collapse file tree 1 file changed +21
-4
lines changed
Expand file tree Collapse file tree 1 file changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ concurrency:
1414 group : pages
1515 cancel-in-progress : false
1616
17+ env :
18+ STORE_PATH : ' '
19+
1720jobs :
1821 build :
1922 runs-on : ubuntu-latest
@@ -25,14 +28,28 @@ jobs:
2528 with :
2629 node-version : ' lts/*'
2730
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-
3047
3148 - name : Install dependencies
32- run : ni
49+ run : pnpm install --frozen-lockfile
3350
3451 - name : Build
35- run : nr packages:build-base
52+ run : pnpm run packages:build-base
3653
3754 - name : Setup Pages
3855 uses : actions/configure-pages@v4
You can’t perform that action at this time.
0 commit comments