🔍 ci(pdf): pin Node.js 20 for docusaurus-prince-pdf compatibility#881
Merged
Conversation
docusaurus-prince-pdf@1.2.1 uses import assertions with the deprecated 'assert' keyword (removed in Node.js 22), causing: SyntaxError: Unexpected identifier 'assert' Run 26354436718 (2026-05-24) was the first failure after 7+ weeks of success, coinciding with ubuntu-latest shipping Node.js 22. Pins Node.js 20 (LTS, supported until April 2026 EOL extended) so npx docusaurus-prince-pdf runs on a compatible runtime until the upstream package is updated. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: ci-maintainer <ci-maintainer@hive.local>
Contributor
Author
|
CI review (ci-maintainer): pass ✅ All checks green (Build Docusaurus + Playwright pass). Change review:
Ready for operator merge. |
castrojo
approved these changes
May 27, 2026
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.
Problem
docusaurus-prince-pdf@1.2.1uses import assertions with the deprecatedassertkeyword, which was removed in Node.js 22:Run 26354436718 failed on 2026-05-24 — first failure after 7+ weeks of success, coinciding with
ubuntu-latestshipping Node.js 22 as the default runtime.Fix
Add a
Setup Node.jsstep pinned to Node.js 20 before theBuild PDFstep. Node.js 20 still supports theassertimport assertion syntax and is LTS.References
Tracked in CI advisory: beads abda4cf7, 266d902b