Skip to content

Commit 5285db5

Browse files
committed
bump: node version in ci templates
1 parent 68aa5fb commit 5285db5

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

src/configs/droneCI.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ trigger:
1010
1111
steps:
1212
- name: lint-and-typecheck
13-
image: node:20.9.0-slim
13+
image: node:24.9.0-slim
1414
commands:
1515
- npm i -g @antfu/ni
1616
- nci
1717
- nr lint
1818
- nr typecheck
1919
- name: build
20-
image: node:20.9.0-slim
20+
image: node:24.9.0-slim
2121
commands:
2222
- npm i -g @antfu/ni
2323
- nci

src/configs/github-actions.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@ on:
99
pull_request:
1010
branches: [ main ]
1111
12+
env:
13+
NODE_VERSION: '24.9.0'
14+
1215
jobs:
1316
lint:
1417
runs-on: ubuntu-latest
1518
steps:
1619
- uses: actions/checkout@v4
17-
- name: Use Node.js 20.6.1
20+
- name: Use Node.js $/{{ env.NODE_VERSION }}
1821
uses: actions/setup-node@v4
1922
with:
20-
node-version: 20.6.1
23+
node-version: $/{{ env.NODE_VERSION }}
2124
2225
- name: Setup
2326
run: npm i -g @antfu/ni
@@ -32,10 +35,10 @@ jobs:
3235
runs-on: ubuntu-latest
3336
steps:
3437
- uses: actions/checkout@v4
35-
- name: Use Node.js 20.6.1
38+
- name: Use Node.js $/{{ env.NODE_VERSION }}
3639
uses: actions/setup-node@v4
3740
with:
38-
node-version: 20.6.1
41+
node-version: $/{{ env.NODE_VERSION }}
3942
4043
- name: Setup
4144
run: npm i -g @antfu/ni

0 commit comments

Comments
 (0)