Skip to content

[v18.x] "Test and upload documentation to artifacts" workflow broken on v18.x-staging. #55754

@richardlau

Description

@richardlau

The Test and upload documentation to artifacts workflow is now failing for v18.x-staging. It looks to be caused by calling actions/setup-node with lts/* which now picks up Node.js 22.

e.g.

Example failure:

=== release test-doctool-json ===
Path: doctool/test-doctool-json
Error: --- stderr ---
node:assert:137
  throw err;
  ^

AssertionError [ERR_ASSERTION]: Unexpected global(s) found: navigator
    at process.<anonymous> (/home/runner/work/node/node/test/common/index.js:394:14)
    at process.emit (node:events:530:35) {
  generatedMessage: false,
  code: 'ERR_ASSERTION',
  actual: undefined,
  expected: undefined,
  operator: 'fail'
}

Node.js v22.11.0
Command: /opt/hostedtoolcache/node/22.11.0/x64/bin/node /home/runner/work/node/node/test/doctool/test-doctool-json.mjs

cc @nodejs/releasers @nodejs/actions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions