Skip to content

Commit 49c7446

Browse files
committed
fix: updated node versions to utilize 22
1 parent 9e426f3 commit 49c7446

File tree

10 files changed

+26
-16
lines changed

10 files changed

+26
-16
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Set up Node.js
3838
uses: actions/setup-node@v5
3939
with:
40-
node-version: 24
40+
node-version: 22
4141
cache: npm
4242
cache-dependency-path: package-lock.json
4343

@@ -122,7 +122,7 @@ jobs:
122122
- name: Set up Node.js for npmjs
123123
uses: actions/setup-node@v5
124124
with:
125-
node-version: 24
125+
node-version: 22
126126
registry-url: https://registry.npmjs.org/
127127
cache: npm
128128
cache-dependency-path: package-lock.json
@@ -183,7 +183,7 @@ jobs:
183183
- name: Set up Node.js for GPR
184184
uses: actions/setup-node@v5
185185
with:
186-
node-version: 24
186+
node-version: 22
187187
registry-url: https://npm.pkg.github.com/
188188
cache: npm
189189
cache-dependency-path: package-lock.json

.github/workflows/lighthouse.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Setup Node.js
4545
uses: actions/setup-node@v5
4646
with:
47-
node-version: 24
47+
node-version: 22
4848
cache: npm
4949
cache-dependency-path: package-lock.json
5050

.github/workflows/meta-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Set up Node.js
2626
uses: actions/setup-node@v5
2727
with:
28-
node-version: 24
28+
node-version: 22
2929

3030
- name: Install dependencies
3131
run: npm ci

.github/workflows/playwright.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Set up Node.js
3535
uses: actions/setup-node@v5
3636
with:
37-
node-version: 24
37+
node-version: 22
3838
cache: npm
3939
cache-dependency-path: package-lock.json
4040

.github/workflows/publish-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Set up Node.js
3636
uses: actions/setup-node@v5
3737
with:
38-
node-version: 24
38+
node-version: 22
3939
cache: npm
4040
cache-dependency-path: package-lock.json
4141

@@ -120,7 +120,7 @@ jobs:
120120
- name: Set up Node.js for npmjs
121121
uses: actions/setup-node@v5
122122
with:
123-
node-version: 24
123+
node-version: 22
124124
registry-url: https://registry.npmjs.org/
125125
cache: npm
126126
cache-dependency-path: package-lock.json
@@ -181,7 +181,7 @@ jobs:
181181
- name: Set up Node.js for GPR
182182
uses: actions/setup-node@v5
183183
with:
184-
node-version: 24
184+
node-version: 22
185185
registry-url: https://npm.pkg.github.com/
186186
cache: npm
187187
cache-dependency-path: package-lock.json

.github/workflows/templates/publish.template.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Set up Node.js
4646
uses: actions/setup-node@v5
4747
with:
48-
node-version: 24
48+
node-version: 22
4949
cache: npm
5050
cache-dependency-path: package-lock.json
5151

@@ -130,7 +130,7 @@ jobs:
130130
- name: Set up Node.js for npmjs
131131
uses: actions/setup-node@v5
132132
with:
133-
node-version: 24
133+
node-version: 22
134134
registry-url: https://registry.npmjs.org/
135135
cache: npm
136136
cache-dependency-path: package-lock.json
@@ -191,7 +191,7 @@ jobs:
191191
- name: Set up Node.js for GPR
192192
uses: actions/setup-node@v5
193193
with:
194-
node-version: 24
194+
node-version: 22
195195
registry-url: https://npm.pkg.github.com/
196196
cache: npm
197197
cache-dependency-path: package-lock.json

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
24.9.0
1+
22.20.0

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
24.9.0
1+
22.20.0

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ This project attempts to follow [Keep a Changelog](https://keepachangelog.com/en
2727
### Changed
2828

2929
- Bumped version to `v1.18.0`
30+
- Updated Node.js version in `.node-version` and `.nvmrc` to `22.20.0` for compatibility with Vercel.
31+
- Updated CI workflows to utilize `node-version: 22`:
32+
- `build-and-publish.yml`
33+
- `lighthouse.yml`
34+
- `meta-check.yml`
35+
- `playwright.yml`
36+
- `publish-test.yml`
37+
- `templates/publish.template.yml`
3038
- Migrated hosting and serverless functions from **Netlify** to **Vercel**.
3139
- Updated deployment configuration to use `@sveltejs/adapter-vercel` in place of
3240
`@sveltejs/adapter-netlify`.

svelte.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ const config = {
1515

1616
kit: {
1717
// Vercel adapter configuration
18-
adapter: adapter(),
18+
adapter: adapter({
19+
runtime: 'nodejs22.x',
20+
}),
1921

2022
// Paths configuration for deployment
2123
paths: {
@@ -39,7 +41,7 @@ const config = {
3941
},
4042
},
4143

42-
// File extensions for Svelte and mdsvex
44+
// File extensions for Svelte only
4345
extensions: ['.svelte'],
4446
};
4547

0 commit comments

Comments
 (0)