File tree Expand file tree Collapse file tree 6 files changed +479
-482
lines changed
Expand file tree Collapse file tree 6 files changed +479
-482
lines changed Original file line number Diff line number Diff line change 22# Setup Node.js, pnpm, and dependencies with caching
33set -euo pipefail
44
5- NODE_VERSION=${1:- " 20" }
6- PNPM_VERSION=${2:- " 10.13.1" }
7-
8- echo " 🔧 Setting up Node.js $NODE_VERSION and pnpm $PNPM_VERSION ..."
9-
105# pnpm store path is already set by pnpm/action-setup
116echo " 📦 Installing dependencies..."
127pnpm install --frozen-lockfile
Original file line number Diff line number Diff line change 2222 REGISTRY : ghcr.io
2323 IMAGE_NAME : ${{ github.repository }}
2424 NODE_VERSION : 22
25+ PNPM_VERSION : 10.13.1
2526
2627jobs :
2728 # Phase 1: Build and Test
4546 - name : Setup pnpm
4647 uses : pnpm/action-setup@v4
4748 with :
48- version : 10.13.1
49+ version : ${{ env.PNPM_VERSION }}
4950 run_install : false
5051
5152 - name : Generate cache key
@@ -193,13 +194,13 @@ jobs:
193194 - name : Setup Node.js
194195 uses : actions/setup-node@v4
195196 with :
196- node-version : ' 20 '
197+ node-version : ${{ env.NODE_VERSION }}
197198 registry-url : ' https://registry.npmjs.org'
198199
199200 - name : Setup pnpm
200201 uses : pnpm/action-setup@v4
201202 with :
202- version : 10.13.1
203+ version : ${{ env.PNPM_VERSION }}
203204 run_install : false
204205
205206 - name : Restore pnpm cache
@@ -277,13 +278,13 @@ jobs:
277278 - name : Setup Node.js
278279 uses : actions/setup-node@v4
279280 with :
280- node-version : ' 20 '
281+ node-version : ${{ env.NODE_VERSION }}
281282 registry-url : ' https://registry.npmjs.org'
282283
283284 - name : Setup pnpm
284285 uses : pnpm/action-setup@v4
285286 with :
286- version : 10.13.1
287+ version : ${{ env.PNPM_VERSION }}
287288 run_install : false
288289
289290 - name : Restore pnpm cache
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments