Skip to content

docs: build with Node.js 24 - #25982

Merged
antobinary merged 1 commit into
bigbluebutton:developfrom
antobinary:docs-node24
Oct 7, 2026
Merged

antobinary merged 1 commit into
bigbluebutton:developfrom
antobinary:docs-node24

Conversation

@antobinary

Copy link
Copy Markdown
Member

What does this PR do?

Moves the docs site (docs/) to Node.js 24, while still allowing newer versions.

File Change
docs/.nvmrc (new) 24, the single source for the preferred Node.js version
.github/workflows/deploy-docs.yml node-version: 22 replaced by node-version-file: ./docs/.nvmrc
docs/package.json engines.node: >=18.0 to >=24.0
docs/package-lock.json re-synced with npm 11, see below
docs/README.md notes the Node.js requirement and nvm use

Why the lockfile changes

npm 11 (bundled with Node.js 24) rejects the current lockfile: npm ci fails with "package.json and package-lock.json ... are not in sync". npm 10 (Node.js 22) accepts it. The lockfile was missing 17 optional platform packages (@node-rs/jieba-* and the WASM runtime pieces pulled in by @easyops-cn/docusaurus-search-local). npm install --package-lock-only under npm 11 adds exactly those 17 entries; no resolved version changes and nothing is removed. Without this, switching CI to Node.js 24 alone would break the docs deploy.

How was it verified?

Run in clean node:24 / node:22 containers against a scratch clone, mirroring the build job of deploy-docs.yml:

Check Result
Node 24.21 / npm 11.19: npm ci, then ./build.sh (2.5, 2.6, 2.7, 3.0, 4.0), then npm run docusaurus build PASS
Same on Node 22 with unmodified develop (baseline) PASS, same warnings
Docs smoke test (homepage, local search, archived page, version-sticky navbar, no JS errors) on the Node 24 build served by Node 24, archived version 2.7 6/6 PASS
Same smoke test with archived version 4.0 6/6 PASS

The only new output on Node 24 is npm 11's allowScripts notice about core-js's postinstall, which only prints a funding banner.

Notes

  • Anyone still on Node.js 22 (for example inside a BBB dev container using run-dev.sh) will get an EBADENGINE warning from npm ci; the install still works because engine-strict is not enabled.
  • The repo-root .nvmrc (node) is left unchanged since it serves the whole repo.

Generated with Claude Code

- docs/.nvmrc pins Node.js 24; deploy-docs.yml now reads it through
  node-version-file instead of hard-coding Node.js 22.
- package.json engines: node >=24.0 (was >=18.0).
- package-lock.json: re-synced with npm 11 (bundled with Node.js 24), which
  refused the old lockfile as out of sync because it lacked 17 optional
  platform packages (@node-rs/jieba-* and the WASM runtime pieces). No
  resolved versions changed.
- README: note the Node.js requirement and `nvm use`.
@antobinary antobinary added this to the An Upcoming Major Release milestone Oct 7, 2026
@coderabbitai

coderabbitai Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (4)
  • v3.0.x-release
  • v3.0.x-develop
  • v4.0.x-release
  • v4.0.x-develop

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d2cf0766-248e-4e68-8e50-8e99566a07f4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@antobinary
antobinary merged commit 19d4592 into bigbluebutton:develop Oct 7, 2026
18 checks passed
@antobinary
antobinary deleted the docs-node24 branch October 7, 2026 00:52
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

⏳ Automated tests are running...

antobinary added a commit to antobinary/bigbluebutton that referenced this pull request Oct 15, 2026
v4.0.x-develop's docs/ still declared Docusaurus ^3.3.2 with
docusaurus-search-local 0.40.1 and no overrides; npm audit reported 67
advisories (19 critical) against its lockfile. Take develop's
docs/package.json, package-lock.json and .nvmrc as they are today, which
carries these develop commits:

- 473ea74 docs: bump docusaurus to 3.10.1
- 5b52345 docs: pin serialize-javascript to ^7.0.5 to clear
  high-severity advisories
- 19d4592 docs: build with Node.js 24 (bigbluebutton#25982) - .nvmrc, engines
  node >=24 and the README note
- 218663a docs: update Docusaurus to 3.10.2
- 45bf274 resolve npm audit warnings in docs (mermaid override)

The files are copied rather than cherry-picked because the lockfile has
diverged here (dependabot bumps); develop's lockfile is consistent with
its package.json. @mermaid-js/layout-elk ^0.1.9 from bigbluebutton#25983 (not on
develop) is kept and resolved on top of develop's lockfile, which adds
only layout-elk 0.1.9 and elkjs 0.9.3. search-local 0.52 needs the Worker fix from the
previous commit.

develop's lockfile itself has new advisories since 2026-10-06 (48 left,
17 critical); the next commit deals with those.
antobinary added a commit to antobinary/bigbluebutton that referenced this pull request Nov 26, 2026
develop is the docs branch. Its source tree no longer follows a release
line, yet a push to develop that touches anything outside docs/**,
**/*.md or the locale files starts Automated tests on that tree, and the
eight test shards fail (as on the bigbluebutton#25982 push). The TypeScript checks
fire the same way for html5 TypeScript changes.

Drop develop from the push branches of these three workflows, so pushes
to develop run only the docs build. The copies on develop only ever run
for develop, because each release line runs its own copy, so this
changes nothing for other branches.
antobinary added a commit that referenced this pull request Nov 26, 2026
The docs workflow on develop already runs on Node 24 actions, but the
older test workflows still on this branch did not. automated-tests.yml
ignores only docs/**, **/*.md and locale files, so any push to develop
that touches anything else (for example .github/workflows/deploy-docs.yml,
as #25982 did) also starts Automated tests, and that run carries the
"Node.js 20 is deprecated ... forced to run on Node.js 24" warning for
actions/checkout@v4 and actions/upload-artifact@v4.

Bump every Node 20 action left on develop to the major the 4.0 line
already uses: checkout v5, setup-node v5, cache v5, upload-artifact and
upload-artifact/merge v6, download-artifact v7, geekyeggo/delete-artifact
v6, github-script v8, find-comment v4, create-or-update-comment v5. The
new majors change only the runtime; every input used here is unchanged.
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.

1 participant