Skip to content

Commit e59f4cb

Browse files
ci: update Node.js version from 18 to 22 in workflows
Next.js 16 requires Node.js >=20.9.0. Update all GitHub Actions workflows to use Node.js 22 to match the Volta configuration in package.json (22.20.0). Fixes: Build failures in CI/CD pipeline
1 parent a3ac5c9 commit e59f4cb

File tree

6 files changed

+102
-102
lines changed

6 files changed

+102
-102
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,29 @@ name: Build
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88

99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- name: Checkout code
15-
uses: actions/checkout@v4
14+
- name: Checkout code
15+
uses: actions/checkout@v4
1616

17-
- name: Setup pnpm
18-
uses: pnpm/action-setup@v4
17+
- name: Setup pnpm
18+
uses: pnpm/action-setup@v4
1919

20-
- name: Setup Node.js
21-
uses: actions/setup-node@v4
22-
with:
23-
node-version: '18'
24-
cache: 'pnpm'
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '22'
24+
cache: 'pnpm'
2525

26-
- name: Install dependencies
27-
run: pnpm install --frozen-lockfile
26+
- name: Install dependencies
27+
run: pnpm install --frozen-lockfile
2828

29-
- name: Build application
30-
run: pnpm build
29+
- name: Build application
30+
run: pnpm build

.github/workflows/e2e-desktop.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,35 @@ name: E2E Desktop
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88

99
jobs:
1010
e2e-desktop:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- name: Checkout code
15-
uses: actions/checkout@v4
14+
- name: Checkout code
15+
uses: actions/checkout@v4
1616

17-
- name: Setup pnpm
18-
uses: pnpm/action-setup@v4
17+
- name: Setup pnpm
18+
uses: pnpm/action-setup@v4
1919

20-
- name: Setup Node.js
21-
uses: actions/setup-node@v4
22-
with:
23-
node-version: '18'
24-
cache: 'pnpm'
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '22'
24+
cache: 'pnpm'
2525

26-
- name: Install dependencies
27-
run: pnpm install --frozen-lockfile
26+
- name: Install dependencies
27+
run: pnpm install --frozen-lockfile
2828

29-
- name: Install Playwright browsers
30-
run: npx playwright install --with-deps
29+
- name: Install Playwright browsers
30+
run: npx playwright install --with-deps
3131

32-
- name: Build application
33-
run: pnpm build
32+
- name: Build application
33+
run: pnpm build
3434

35-
- name: Run desktop E2E tests
36-
run: npx playwright test --project="Desktop Chrome"
35+
- name: Run desktop E2E tests
36+
run: npx playwright test --project="Desktop Chrome"

.github/workflows/e2e-mobile.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,35 @@ name: E2E Mobile
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88

99
jobs:
1010
e2e-mobile:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- name: Checkout code
15-
uses: actions/checkout@v4
14+
- name: Checkout code
15+
uses: actions/checkout@v4
1616

17-
- name: Setup pnpm
18-
uses: pnpm/action-setup@v4
17+
- name: Setup pnpm
18+
uses: pnpm/action-setup@v4
1919

20-
- name: Setup Node.js
21-
uses: actions/setup-node@v4
22-
with:
23-
node-version: '18'
24-
cache: 'pnpm'
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '22'
24+
cache: 'pnpm'
2525

26-
- name: Install dependencies
27-
run: pnpm install --frozen-lockfile
26+
- name: Install dependencies
27+
run: pnpm install --frozen-lockfile
2828

29-
- name: Install Playwright browsers
30-
run: npx playwright install --with-deps
29+
- name: Install Playwright browsers
30+
run: npx playwright install --with-deps
3131

32-
- name: Build application
33-
run: pnpm build
32+
- name: Build application
33+
run: pnpm build
3434

35-
- name: Run mobile E2E tests
36-
run: npx playwright test --project="Mobile Chrome"
35+
- name: Run mobile E2E tests
36+
run: npx playwright test --project="Mobile Chrome"

.github/workflows/e2e-tablet.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,35 @@ name: E2E Tablet
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88

99
jobs:
1010
e2e-tablet:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- name: Checkout code
15-
uses: actions/checkout@v4
14+
- name: Checkout code
15+
uses: actions/checkout@v4
1616

17-
- name: Setup pnpm
18-
uses: pnpm/action-setup@v4
17+
- name: Setup pnpm
18+
uses: pnpm/action-setup@v4
1919

20-
- name: Setup Node.js
21-
uses: actions/setup-node@v4
22-
with:
23-
node-version: '18'
24-
cache: 'pnpm'
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '22'
24+
cache: 'pnpm'
2525

26-
- name: Install dependencies
27-
run: pnpm install --frozen-lockfile
26+
- name: Install dependencies
27+
run: pnpm install --frozen-lockfile
2828

29-
- name: Install Playwright browsers
30-
run: npx playwright install --with-deps
29+
- name: Install Playwright browsers
30+
run: npx playwright install --with-deps
3131

32-
- name: Build application
33-
run: pnpm build
32+
- name: Build application
33+
run: pnpm build
3434

35-
- name: Run tablet E2E tests
36-
run: npx playwright test --project="Tablet Safari"
35+
- name: Run tablet E2E tests
36+
run: npx playwright test --project="Tablet Safari"

.github/workflows/lint.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,29 @@ name: Lint
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88

99
jobs:
1010
lint:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- name: Checkout code
15-
uses: actions/checkout@v4
14+
- name: Checkout code
15+
uses: actions/checkout@v4
1616

17-
- name: Setup pnpm
18-
uses: pnpm/action-setup@v4
17+
- name: Setup pnpm
18+
uses: pnpm/action-setup@v4
1919

20-
- name: Setup Node.js
21-
uses: actions/setup-node@v4
22-
with:
23-
node-version: '18'
24-
cache: 'pnpm'
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '22'
24+
cache: 'pnpm'
2525

26-
- name: Install dependencies
27-
run: pnpm install --frozen-lockfile
26+
- name: Install dependencies
27+
run: pnpm install --frozen-lockfile
2828

29-
- name: Run linter
30-
run: pnpm lint
29+
- name: Run linter
30+
run: pnpm lint

.github/workflows/typecheck.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,29 @@ name: Type Check
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88

99
jobs:
1010
typecheck:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- name: Checkout code
15-
uses: actions/checkout@v4
14+
- name: Checkout code
15+
uses: actions/checkout@v4
1616

17-
- name: Setup pnpm
18-
uses: pnpm/action-setup@v4
17+
- name: Setup pnpm
18+
uses: pnpm/action-setup@v4
1919

20-
- name: Setup Node.js
21-
uses: actions/setup-node@v4
22-
with:
23-
node-version: '18'
24-
cache: 'pnpm'
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '22'
24+
cache: 'pnpm'
2525

26-
- name: Install dependencies
27-
run: pnpm install --frozen-lockfile
26+
- name: Install dependencies
27+
run: pnpm install --frozen-lockfile
2828

29-
- name: Run type check
30-
run: pnpm typecheck
29+
- name: Run type check
30+
run: pnpm typecheck

0 commit comments

Comments
 (0)