Skip to content

Commit c7feceb

Browse files
committed
tools: regenerate published config schema
1 parent 84baf6f commit c7feceb

7 files changed

Lines changed: 1151 additions & 17 deletions

File tree

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@
218218
/tools/dep_updaters/update-sqlite.sh @nodejs/sqlite
219219

220220
# Config
221+
/doc/node-config-schema.json @nodejs/config
221222
/src/node_config.* @nodejs/config
222223
/src/node_dotenv.* @nodejs/config
223224
/src/node_options.* @nodejs/config

.github/label-pr-config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ exlusiveLabels:
154154
# Specific map for typescript.md as it should be labeled 'strip-types'
155155
/^doc\/api\/typescript.md$/: doc, strip-types
156156

157+
/^doc\/node-config-schema.json$/: doc, config
158+
157159
/^doc\//: doc
158160

159161
# More specific benchmarks

.github/workflows/linters.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,3 +283,21 @@ jobs:
283283
- run: tools/lint-readme-lists.mjs "$TEAMS"
284284
env:
285285
TEAMS: ${{ tojson(steps.team_members.outputs) }}
286+
check-config-schema-sync:
287+
if: github.event.pull_request.draft == false
288+
runs-on: ubuntu-slim
289+
steps:
290+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
291+
with:
292+
persist-credentials: false
293+
sparse-checkout: |
294+
/doc/node-config-schema.json
295+
/src/node_config_schema.h
296+
/tools/gen_node_config_schema.mjs
297+
sparse-checkout-cone-mode: false
298+
- name: Use Node.js ${{ env.NODE_VERSION }}
299+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
300+
with:
301+
node-version: ${{ env.NODE_VERSION }}
302+
- name: Verify config schema files match Node's option metadata
303+
run: node tools/gen_node_config_schema.mjs --check

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,7 @@ doc: $(NODE_EXE) doc-only ## Build Node.js, and then build the documentation wit
863863

864864
out/doc:
865865
mkdir -p $@
866+
cp doc/node-config-schema.json $@
866867

867868
# If it's a source tarball, doc/api already contains the generated docs.
868869
# Just copy everything under doc/api over.

0 commit comments

Comments
 (0)