@@ -28,23 +28,27 @@ jobs:
2828
2929 strategy :
3030 matrix :
31- node-version : [22.x ]
31+ node-version : [22]
3232
3333 steps :
3434 - name : Check out Git repository
3535 uses : actions/checkout@v5
3636
37- - name : Setup pnpm
38- uses : pnpm/action-setup@v4
39-
4037 - name : Use Node.js ${{ matrix.node-version }}
4138 uses : actions/setup-node@v4
4239 with :
4340 node-version : ${{ matrix.node-version }}
4441 cache : ' pnpm'
4542
43+ - name : Setup pnpm
44+ uses : pnpm/action-setup@v4
45+ with :
46+ # Auto-detect pnpm version from package.json (requires packageManager in package.json)
47+ package_json_path : ' ./package.json'
48+ run_install : false
49+
4650 - name : Install dependencies
47- run : pnpm install
51+ run : pnpm install --frozen-lockfile
4852
4953 - name : Build
5054 run : pnpm build
@@ -74,18 +78,22 @@ jobs:
7478 - name : Check out Git repository
7579 uses : actions/checkout@v5
7680
77- - name : Setup pnpm
78- uses : pnpm/action-setup@v4
79-
8081 - name : Setup Node.js
8182 uses : actions/setup-node@v4
8283 with :
8384 node-version : 22
8485 check-latest : true
8586 cache : ' pnpm'
8687
88+ - name : Setup pnpm
89+ uses : pnpm/action-setup@v4
90+ with :
91+ # Auto-detect pnpm version from package.json (requires packageManager in package.json)
92+ package_json_path : ' ./package.json'
93+ run_install : false
94+
8795 - name : Install dependencies
88- run : pnpm install
96+ run : pnpm install --frozen-lockfile
8997
9098 - name : Build
9199 run : pnpm build
@@ -121,18 +129,22 @@ jobs:
121129 - name : Check out Git repository
122130 uses : actions/checkout@v5
123131
124- - name : Setup pnpm
125- uses : pnpm/action-setup@v4
126-
127132 - name : Setup Node.js
128133 uses : actions/setup-node@v4
129134 with :
130135 node-version : 22
131136 check-latest : true
132137 cache : ' pnpm'
133138
139+ - name : Setup pnpm
140+ uses : pnpm/action-setup@v4
141+ with :
142+ # Auto-detect pnpm version from package.json (requires packageManager in package.json)
143+ package_json_path : ' ./package.json'
144+ run_install : false
145+
134146 - name : Install dependencies
135- run : pnpm install
147+ run : pnpm install --frozen-lockfile
136148
137149 - name : Build
138150 run : pnpm build
0 commit comments