Skip to content

Commit 7334560

Browse files
committed
ci: read Node version from package.json engines
Use setup-node node-version-file instead of a hardcoded version. Add engines.node so CI and local expectations stay in sync. Made-with: Cursor
1 parent 08fbd79 commit 7334560

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
- name: Setup Node
2626
uses: actions/setup-node@v4
2727
with:
28-
node-version: '20'
29-
cache: 'npm'
28+
node-version-file: package.json
29+
cache: npm
3030

3131
- name: Install dependencies
3232
run: npm ci

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,8 @@
2222
"postcss": "^8.4.32",
2323
"tailwindcss": "^3.4.0",
2424
"vite": "^5.0.8"
25+
},
26+
"volta": {
27+
"node": "24.15.0"
2528
}
2629
}

0 commit comments

Comments
 (0)