File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 node-version : 22
1919 cache : ' pnpm'
2020
21- - name : Install dependencies and build
22- run : pnpm install --frozen-lockfile
21+ - name : Install pnpm
22+ id : pnpm-install
23+ uses : pnpm/action-setup@v4
24+ with :
25+ version : 10
26+ run_install : |
27+ - args: [--frozen-lockfile]
2328
2429 - name : Build docs website
2530 run : pnpm build
Original file line number Diff line number Diff line change @@ -11,36 +11,21 @@ jobs:
1111 runs-on : ubuntu-latest
1212 steps :
1313 - name : Checkout repository
14- uses : actions/checkout@v3
14+ uses : actions/checkout@v4
1515
1616 - name : Setup node
1717 uses : actions/setup-node@v4
1818 with :
19- node-version : 20
19+ node-version : 22
20+ cache : ' pnpm'
2021
2122 - name : Install pnpm
2223 id : pnpm-install
23- uses : pnpm/action-setup@v2
24+ uses : pnpm/action-setup@v4
2425 with :
25- version : 8
26- run_install : false
27-
28- - name : Get pnpm store directory
29- id : pnpm-cache
30- shell : bash
31- run : |
32- echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
33-
34- - uses : actions/cache@v3
35- name : Setup pnpm cache
36- with :
37- path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
38- key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
39- restore-keys : |
40- ${{ runner.os }}-pnpm-store-
41-
42- - name : Install dependencies and build
43- run : pnpm install --frozen-lockfile
26+ version : 10
27+ run_install : |
28+ - args: [--frozen-lockfile]
4429
4530 - name : Build docs website
4631 run : pnpm build
You can’t perform that action at this time.
0 commit comments