File tree Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -13,23 +13,30 @@ jobs:
1313 steps :
1414 - name : Checkout repository
1515 uses : actions/checkout@v3
16-
1716 - name : Set up Node.js
1817 uses : actions/setup-node@v3
1918 with :
20- node-version : 20
21- cache : ' pnpm'
22-
23- - name : Install pnpm
24- run : npm install -g pnpm
25-
19+ node-version : 22
20+ - uses : pnpm/action-setup@v4
21+ name : Install pnpm
22+ with :
23+ run_install : false
24+ - name : Get pnpm store directory
25+ shell : bash
26+ run : |
27+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
28+ - uses : actions/cache@v4
29+ name : Setup pnpm cache
30+ with :
31+ path : ${{ env.STORE_PATH }}
32+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
33+ restore-keys : |
34+ ${{ runner.os }}-pnpm-store-
2635 - name : Install root dependencies (optional if needed)
2736 run : pnpm install
28-
2937 - name : Install example dependencies
3038 working-directory : ./example
3139 run : pnpm install
32-
3340 - name : Run example tests
3441 working-directory : ./example
3542 run : pnpm test
You can’t perform that action at this time.
0 commit comments