Skip to content

ci: bump release workflow node to 22 (LTS)#144

Open
dylan-conway wants to merge 1 commit intomainfrom
dylanc/node-22
Open

ci: bump release workflow node to 22 (LTS)#144
dylan-conway wants to merge 1 commit intomainfrom
dylanc/node-22

Conversation

@dylan-conway
Copy link
Collaborator

Bumps Node from 18 to 22 (LTS) in the release workflow. DevDependencies like lint-staged and cli-truncate require Node 20+, and the release workflow needs devDependencies to build.

The test workflow stays on Node 18 to verify the package works on the minimum supported version.

@ebendler
Copy link

ebendler commented Feb 20, 2026

Your test workflow is going to throw off a bunch of warnings as it also builds the package with Node 18.

As of today, this is what you get for npm i on Node 18.20.8:

npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: 'cli-truncate@5.1.1',
npm warn EBADENGINE   required: { node: '>=20' },
npm warn EBADENGINE   current: { node: 'v18.20.8', npm: '10.8.2' }
npm warn EBADENGINE }
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: 'lint-staged@16.2.6',
npm warn EBADENGINE   required: { node: '>=20.17' },
npm warn EBADENGINE   current: { node: 'v18.20.8', npm: '10.8.2' }
npm warn EBADENGINE }
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: 'commander@14.0.2',
npm warn EBADENGINE   required: { node: '>=20' },
npm warn EBADENGINE   current: { node: 'v18.20.8', npm: '10.8.2' }
npm warn EBADENGINE }
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: 'listr2@9.0.5',
npm warn EBADENGINE   required: { node: '>=20.0.0' },
npm warn EBADENGINE   current: { node: 'v18.20.8', npm: '10.8.2' }
npm warn EBADENGINE }
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: 'nano-spawn@2.0.0',
npm warn EBADENGINE   required: { node: '>=20.17' },
npm warn EBADENGINE   current: { node: 'v18.20.8', npm: '10.8.2' }
npm warn EBADENGINE }
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: 'string-width@8.1.0',
npm warn EBADENGINE   required: { node: '>=20' },
npm warn EBADENGINE   current: { node: 'v18.20.8', npm: '10.8.2' }
npm warn EBADENGINE }

FWIW if your real target is the bun runtime, their compatibility target is NodeJS 23/24:

This page is updated regularly to reflect compatibility status of the latest version of Bun. The information below reflects Bun’s compatibility with Node.js v23.

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