Repository navigation
docs: build with Node.js 24 - #25982
Merged
Merged
Conversation
- 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`.
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (4)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
⏳ 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Moves the docs site (
docs/) to Node.js 24, while still allowing newer versions.docs/.nvmrc(new)24, the single source for the preferred Node.js version.github/workflows/deploy-docs.ymlnode-version: 22replaced bynode-version-file: ./docs/.nvmrcdocs/package.jsonengines.node:>=18.0to>=24.0docs/package-lock.jsondocs/README.mdnvm useWhy the lockfile changes
npm 11 (bundled with Node.js 24) rejects the current lockfile:
npm cifails 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-onlyunder 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:22containers against a scratch clone, mirroring thebuildjob ofdeploy-docs.yml:npm ci, then./build.sh(2.5, 2.6, 2.7, 3.0, 4.0), thennpm run docusaurus builddevelop(baseline)The only new output on Node 24 is npm 11's
allowScriptsnotice aboutcore-js's postinstall, which only prints a funding banner.Notes
run-dev.sh) will get anEBADENGINEwarning fromnpm ci; the install still works becauseengine-strictis not enabled..nvmrc(node) is left unchanged since it serves the whole repo.Generated with Claude Code