Skip to content

Update Node.js version to 20 in deploy workflow#4

Merged
benfoxall merged 2 commits intomainfrom
copilot/update-node-version-to-20
Jan 21, 2026
Merged

Update Node.js version to 20 in deploy workflow#4
benfoxall merged 2 commits intomainfrom
copilot/update-node-version-to-20

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 21, 2026

GitHub Actions deploy workflow fails during yarn install due to @vitejs/plugin-react@5.1.2 requiring Node.js ^20.19.0 || >=22.12.0.

Changes

  • Updated .github/workflows/deploy.yml to use Node.js 20 instead of 18
- name: Setup Node.js
  uses: actions/setup-node@v4
  with:
-   node-version: '18'
+   node-version: '20'
    cache: 'yarn'
Original prompt

Problem

The GitHub Actions workflow is failing because the Node.js version is incompatible with the project dependencies. The error occurs during yarn install:

error @vitejs/plugin-react@5.1.2: The engine "node" is incompatible with this module. Expected version "^20.19.0 || >=22.12.0". Got "18.20.8"

Solution

Update the Node.js version in .github/workflows/deploy.yml from version 18 to version 20 to meet the requirements of @vitejs/plugin-react@5.1.2.

Required Changes

In the file .github/workflows/deploy.yml, update line 18:

Current:

- name: Setup Node.js
  uses: actions/setup-node@v4
  with:
    node-version: '18'
    cache: 'yarn'

Should be:

- name: Setup Node.js
  uses: actions/setup-node@v4
  with:
    node-version: '20'
    cache: 'yarn'

This will ensure the workflow uses Node.js 20, which is compatible with the project's dependencies.

Reference

This pull request was created from Copilot chat.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: benfoxall <51385+benfoxall@users.noreply.github.com>
Copilot AI changed the title [WIP] Update Node.js version in GitHub Actions workflow Update Node.js version to 20 in deploy workflow Jan 21, 2026
Copilot AI requested a review from benfoxall January 21, 2026 21:00
@benfoxall benfoxall marked this pull request as ready for review January 21, 2026 21:11
@benfoxall benfoxall merged commit 963146a into main Jan 21, 2026
@benfoxall benfoxall deleted the copilot/update-node-version-to-20 branch January 21, 2026 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants