@@ -16,30 +16,17 @@ jobs:
1616
1717 steps :
1818 - name : Checkout code
19- uses : actions/checkout@v6
19+ uses : actions/checkout@v4
2020
2121 - name : Setup pnpm
2222 uses : pnpm/action-setup@v4
2323
2424 - name : Setup Node.js ${{ matrix.node-version }}
25- uses : actions/setup-node@v6
25+ uses : actions/setup-node@v4
2626 with :
2727 node-version : ${{ matrix.node-version }}
2828 cache : ' pnpm'
2929
30- - name : Get pnpm store directory
31- shell : bash
32- run : |
33- echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
34-
35- - name : Setup pnpm cache
36- uses : actions/cache@v5
37- with :
38- path : ${{ env.STORE_PATH }}
39- key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
40- restore-keys : |
41- ${{ runner.os }}-pnpm-store-
42-
4330 - name : Install dependencies
4431 run : pnpm install --frozen-lockfile
4532
@@ -63,29 +50,24 @@ jobs:
6350
6451 steps :
6552 - name : Checkout code
66- uses : actions/checkout@v6
53+ uses : actions/checkout@v4
6754
6855 - name : Setup pnpm
6956 uses : pnpm/action-setup@v4
7057
7158 - name : Setup Node.js
72- uses : actions/setup-node@v6
59+ uses : actions/setup-node@v4
7360 with :
7461 node-version : ' 20.x'
7562 cache : ' pnpm'
7663
77- - name : Get pnpm store directory
78- shell : bash
79- run : |
80- echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
81-
82- - name : Setup pnpm cache
83- uses : actions/cache@v5
64+ - name : Turbo Cache
65+ uses : actions/cache@v4
8466 with :
85- path : ${{ env.STORE_PATH }}
86- key : ${{ runner.os }}-pnpm-store- ${{ hashFiles('**/pnpm-lock.yaml') }}
67+ path : node_modules/.cache/turbo
68+ key : turbo- ${{ runner.os }}-${{ github.sha }}
8769 restore-keys : |
88- ${{ runner.os }}-pnpm-store -
70+ turbo- ${{ runner.os }}-
8971
9072 - name : Install dependencies
9173 run : pnpm install --frozen-lockfile
@@ -99,29 +81,24 @@ jobs:
9981
10082 steps :
10183 - name : Checkout code
102- uses : actions/checkout@v6
84+ uses : actions/checkout@v4
10385
10486 - name : Setup pnpm
10587 uses : pnpm/action-setup@v4
10688
10789 - name : Setup Node.js
108- uses : actions/setup-node@v6
90+ uses : actions/setup-node@v4
10991 with :
11092 node-version : ' 20.x'
11193 cache : ' pnpm'
11294
113- - name : Get pnpm store directory
114- shell : bash
115- run : |
116- echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
117-
118- - name : Setup pnpm cache
119- uses : actions/cache@v5
95+ - name : Turbo Cache
96+ uses : actions/cache@v4
12097 with :
121- path : ${{ env.STORE_PATH }}
122- key : ${{ runner.os }}-pnpm-store- ${{ hashFiles('**/pnpm-lock.yaml') }}
98+ path : node_modules/.cache/turbo
99+ key : turbo- ${{ runner.os }}-${{ github.sha }}
123100 restore-keys : |
124- ${{ runner.os }}-pnpm-store -
101+ turbo- ${{ runner.os }}-
125102
126103 - name : Install dependencies
127104 run : pnpm install --frozen-lockfile
0 commit comments