build: pin doc workflow to Node.js 20

To save time, the `.github/workflows/doc.yml` workflow runs
with a pre-built Node.js. The switch of `lts/*` to Node.js 22 has
broken this workflow for Node.js 20 and 18 due to a mismatch
in globals. Pin the version of Node.js back to 20.

PR-URL: https://github.com/nodejs/node/pull/55755
Fixes: https://github.com/nodejs/node/issues/55754
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Richard Lau authored and Antoine du Hamel committed 2024-11-07 13:21:24 +01:00
1 parent 93670de499
commit 4c2e07aaac
1 file changed
+1 -1
+1 -1
View File
@@ -14,7 +14,7 @@ concurrency:
cancel-in-progress: true
env:
NODE_VERSION: lts/*
NODE_VERSION: 20
permissions:
contents: read