Skip to content

Commit f470356

Browse files
committed
build: bump node and pnpm to lts
1 parent 5492629 commit f470356

3 files changed

Lines changed: 8293 additions & 6835 deletions

File tree

.github/workflows/main.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
pull_request:
1010
branches: [main]
1111

12+
env:
13+
NODE_VERSION: 22.20.0
14+
PNPM_VERSION: 10.18.3
15+
1216
jobs:
1317
validate:
1418
name: Validate Using Latest Node LTS
@@ -17,10 +21,10 @@ jobs:
1721
- uses: actions/checkout@v3
1822
- uses: pnpm/action-setup@v2.2.4
1923
with:
20-
version: 8
24+
version: ${{ env.PNPM_VERSION }}
2125
- uses: actions/setup-node@v3
2226
with:
23-
node-version: 18
27+
node-version: ${{ env.NODE_VERSION }}
2428
cache: pnpm
2529

2630
- name: Run Lint and Typecheck
@@ -45,10 +49,10 @@ jobs:
4549
- uses: actions/checkout@v3
4650
- uses: pnpm/action-setup@v2.2.4
4751
with:
48-
version: 8
52+
version: ${{ env.PNPM_VERSION }}
4953
- uses: actions/setup-node@v3
5054
with:
51-
node-version: 18
55+
node-version: ${{ env.NODE_VERSION }}
5256
cache: pnpm
5357

5458
- name: Build website
@@ -76,10 +80,10 @@ jobs:
7680
- uses: actions/checkout@v3
7781
- uses: pnpm/action-setup@v2.2.4
7882
with:
79-
version: 8
83+
version: ${{ env.PNPM_VERSION }}
8084
- uses: actions/setup-node@v3
8185
with:
82-
node-version: 18
86+
node-version: ${{ env.NODE_VERSION }}
8387
cache: pnpm
8488

8589
- name: Download the build folders
@@ -131,10 +135,10 @@ jobs:
131135
- uses: actions/checkout@v3
132136
- uses: pnpm/action-setup@v2.2.4
133137
with:
134-
version: 8
138+
version: ${{ env.PNPM_VERSION }}
135139
- uses: actions/setup-node@v3
136140
with:
137-
node-version: 18
141+
node-version: ${{ env.NODE_VERSION }}
138142
cache: pnpm
139143

140144
- name: Download the build folders

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,9 @@
125125
"**/*.{ts,tsx,scss,js,jsx,md,yml,json}": [
126126
"prettier --write"
127127
]
128+
},
129+
"volta": {
130+
"node": "22.20.0",
131+
"pnpm": "10.18.3"
128132
}
129133
}

0 commit comments

Comments
 (0)