Skip to content

[BUG] Release workflow fails because Node 18 is still declared in .nvmrc and engines #2417

@Varadraj75

Description

@Varadraj75

Describe the bug.

The release workflow Publish to any of NPM, Github, and Docker Hub is currently failing because the project still declares Node 18 as the required version via:

  • .nvmrc = v18
  • "engines": { "node": ">=18" } in package.json

As a result, the release job runs on Node v18.20.8, but some dependencies (for example yargs-parser@22) now require a minimum Node.js version of 20.

This causes the release step to fail with the following error:

  yargs parser supports a minimum Node.js version of 20
  current: { node: 'v18.20.8' }

The failure happens consistently in the release job after merge.

Expected behavior

The release workflow should resolve and run on Node.js >= 20, so that it is compatible with current dependencies and the job completes successfully without engine/version errors.

Screenshots

The release job fails on Node v18.20.8 while yargs-parser requires Node >= 20, as shown below.
Image

How to Reproduce

  1. Clone the repository:

    git clone [https://github.com/asyncapi/modelina.git](https://github.com/asyncapi/modelina.git)
    cd modelina
  2. Trigger the release workflow:
    Push or merge a commit to the master branch that meets the conventional commit criteria (e.g., a message starting with fix: or feat:).

  3. Navigate to GitHub Actions:
    Open the workflow run specifically for:

    • Workflow: Release (Node project)
    • Job: Publish to any of NPM, Github, and Docker Hub

🖥️ Device Information [optional]

  • Operating System (OS): macOS
  • Browser: N/A
  • Browser Version: N/A

👀 Have you checked for similar open issues?

  • I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue ?

Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions