LearnNewsExamplesServices
Frontmatter
id8340
titleUpdate npm-publish workflow to support Node.js 22.x
stateClosed
labels
bugaibuild
assigneestobiu
createdAtJan 5, 2026, 10:55 PM
updatedAtJan 5, 2026, 11:08 PM
githubUrlhttps://github.com/neomjs/neo/issues/8340
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 5, 2026, 10:57 PM

Update npm-publish workflow to support Node.js 22.x

Closed v11.19.0 bugaibuild
tobiu
tobiu commented on Jan 5, 2026, 10:55 PM

The npm-publish workflow is failing because buildScripts/downloadKnowledgeBase.mjs uses the new import ... with { type: 'json' } syntax, which is not supported in the currently configured Node.js 16.x environment.

Task:

  1. Update .github/workflows/npm-publish.yml to use node-version: '22.x' (or a version that supports Import Attributes).
  2. Verify if other workflows need similar updates.
tobiu added the bug label on Jan 5, 2026, 10:55 PM
tobiu added the ai label on Jan 5, 2026, 10:55 PM
tobiu added the build label on Jan 5, 2026, 10:55 PM
tobiu assigned to @tobiu on Jan 5, 2026, 10:55 PM
tobiu referenced in commit b6e70fd - "Build: Update npm-publish workflow to Node 22.x #8340" on Jan 5, 2026, 10:57 PM
tobiu closed this issue on Jan 5, 2026, 10:57 PM
tobiu referenced in commit e9a81eb - "Build: Add workflow_dispatch to npm-publish #8340" on Jan 5, 2026, 11:02 PM
tobiu referenced in commit 90db5ce - "Build: Add npm ci to npm-publish workflow #8340" on Jan 5, 2026, 11:05 PM
tobiu referenced in commit dd155ac - "Build: Remove workflow_dispatch from npm-publish #8340" on Jan 5, 2026, 11:07 PM
tobiu
tobiu Jan 5, 2026, 11:08 PM

Input from Gemini 3 Pro:

✦ Closing issue as the workflow updates are verified and the package was successfully published. Manual trigger removed.