@@ -21,34 +21,14 @@ jobs:
2121 - name : Checkout
2222 uses : actions/checkout@v4
2323
24- - name : Install Node.js 22.x
25- uses : actions/setup-node@v3
24+ - uses : pnpm/action-setup@v4
25+ - uses : actions/setup-node@v5
2626 with :
27- node-version : 22.x
27+ node-version : ' lts/*'
28+ cache : pnpm
2829
29- - name : Install pnpm
30- uses : pnpm/action-setup@v4
31- with :
32- run_install : false
33-
34- - name : Obtain pnpm store directory
35- shell : bash
36- run : |
37- echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
38-
39- - name : Obtain pnpm store cache
40- uses : actions/cache@v4
41- with :
42- path : ${{ env.STORE_PATH }}
43- key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
44- restore-keys : |
45- ${{ runner.os }}-pnpm-store-
46-
47- - name : Install dependencies
48- run : pnpm install --frozen-lockfile
49-
50- - name : Lint
51- run : pnpm run lint
30+ - run : pnpm install --frozen-lockfile
31+ - run : pnpm run lint
5232
5333 typecheck :
5434 name : Type Check
@@ -59,34 +39,14 @@ jobs:
5939 - name : Checkout
6040 uses : actions/checkout@v4
6141
62- - name : Install Node.js 22.x
63- uses : actions/setup-node@v3
64- with :
65- node-version : 22.x
66-
67- - name : Install pnpm
68- uses : pnpm/action-setup@v4
42+ - uses : pnpm/action-setup@v4
43+ - uses : actions/setup-node@v5
6944 with :
70- run_install : false
45+ node-version : ' lts/*'
46+ cache : pnpm
7147
72- - name : Obtain pnpm store directory
73- shell : bash
74- run : |
75- echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
76-
77- - name : Obtain pnpm store cache
78- uses : actions/cache@v4
79- with :
80- path : ${{ env.STORE_PATH }}
81- key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
82- restore-keys : |
83- ${{ runner.os }}-pnpm-store-
84-
85- - name : Install dependencies
86- run : pnpm install --frozen-lockfile
87-
88- - name : Type Check
89- run : pnpm run typecheck
48+ - run : pnpm install --frozen-lockfile
49+ - run : pnpm run typecheck
9050
9151 build-test :
9252 name : Build Test
@@ -97,31 +57,10 @@ jobs:
9757 - name : Checkout
9858 uses : actions/checkout@v4
9959
100- - name : Install Node.js 22.x
101- uses : actions/setup-node@v4
60+ - uses : pnpm/action-setup@v4
61+ - uses : actions/setup-node@v5
10262 with :
103- node-version : 22.x
104-
105- - name : Install pnpm
106- uses : pnpm/action-setup@v4
107- with :
108- run_install : false
109-
110- - name : Obtain pnpm store directory
111- shell : bash
112- run : |
113- echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
114-
115- - name : Obtain pnpm store cache
116- uses : actions/cache@v4
117- with :
118- path : ${{ env.STORE_PATH }}
119- key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
120- restore-keys : |
121- ${{ runner.os }}-pnpm-store-
122-
123- - name : Install dependencies
124- run : pnpm install --frozen-lockfile
125-
126- - name : Build Test
127- run : pnpm run build
63+ node-version : ' lts/*'
64+ cache : pnpm
65+ - run : pnpm install --frozen-lockfile
66+ - run : pnpm run build
0 commit comments