Skip to content

fix(ci): align workflow Node.js version with package engines - #9857

Closed
MGPOCKY wants to merge 1 commit into
elastic:mainfrom
MGPOCKY:fix/ci-node-version-mismatch
Closed

fix(ci): align workflow Node.js version with package engines#9857
MGPOCKY wants to merge 1 commit into
elastic:mainfrom
MGPOCKY:fix/ci-node-version-mismatch

Conversation

@MGPOCKY

@MGPOCKY MGPOCKY commented Jul 31, 2026

Copy link
Copy Markdown

Why

Package metadata declares engines.node / volta.node / .nvmrc as 22, but CI workflows still pin node-version to a mismatched value.

That can make CI run on a runtime the project no longer supports (or skip the version the package actually targets).

What changed

Update the affected workflow node-version pins so they satisfy 22 (using 22 where a concrete pin is needed).

  • .github/workflows/sync-project-fields.yml
    • node-version: '18'node-version: '22'

Test plan

  • Package engines.node / volta.node / .nvmrc is still 22
  • Updated workflows now use versions consistent with that constraint
  • Relevant CI jobs on this branch look healthy

Found while auditing CI/package version consistency across popular repos.

@cla-checker-service

Copy link
Copy Markdown

❌ Author of the following commits did not sign a Contributor Agreement:
42afc97

Please, read and sign the above mentioned agreement if you want to contribute to this project

@github-actions

Copy link
Copy Markdown

👋 Since this is a community submitted pull request, a Buildkite build has not been started automatically. Would an Elastic organization member please verify the contents of this pull request and kick off a build manually?

@github-actions github-actions Bot added the community contribution (Don't delete - used for automation) label Jul 31, 2026
@MGPOCKY
MGPOCKY marked this pull request as ready for review July 31, 2026 09:09
@MGPOCKY
MGPOCKY requested a review from a team as a code owner July 31, 2026 09:09
Copilot AI review requested due to automatic review settings July 31, 2026 09:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the sync-project-fields GitHub Actions workflow to run on a Node.js version consistent with the repo’s current Node baseline, reducing CI/runtime mismatch.

Changes:

  • Bumps actions/setup-node node-version in the sync-project-fields workflow from 18 to 22.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 38 to +40
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '22'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community contribution (Don't delete - used for automation)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants