From 3c8a2c9a652a66b5c6e38ebddd8ef48460856e42 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 4 Nov 2025 13:04:48 -0800 Subject: [PATCH 1/3] Collect JSON Schemas during publish. --- common/config/azure-pipelines/npm-publish.yaml | 5 ++++- ...ublished-versions.yaml => post-publish.yaml} | 6 ++---- tsdoc/config/heft.json | 17 +++++++++++++++++ 3 files changed, 23 insertions(+), 5 deletions(-) rename common/config/azure-pipelines/templates/{record-published-versions.yaml => post-publish.yaml} (82%) diff --git a/common/config/azure-pipelines/npm-publish.yaml b/common/config/azure-pipelines/npm-publish.yaml index 75215121..0059b7e6 100644 --- a/common/config/azure-pipelines/npm-publish.yaml +++ b/common/config/azure-pipelines/npm-publish.yaml @@ -31,6 +31,9 @@ extends: - output: pipelineArtifact targetPath: $(Build.ArtifactStagingDirectory)/published-versions artifactName: published-versions + - output: pipelineArtifact + targetPath: $(Build.ArtifactStagingDirectory)/json-schemas + artifactName: json-schemas steps: - checkout: self persistCredentials: true @@ -42,4 +45,4 @@ extends: - template: /common/config/azure-pipelines/templates/publish.yaml@self - - template: /common/config/azure-pipelines/templates/record-published-versions.yaml@self + - template: /common/config/azure-pipelines/templates/post-publish.yaml@self diff --git a/common/config/azure-pipelines/templates/record-published-versions.yaml b/common/config/azure-pipelines/templates/post-publish.yaml similarity index 82% rename from common/config/azure-pipelines/templates/record-published-versions.yaml rename to common/config/azure-pipelines/templates/post-publish.yaml index e6b2aca2..b3aed420 100644 --- a/common/config/azure-pipelines/templates/record-published-versions.yaml +++ b/common/config/azure-pipelines/templates/post-publish.yaml @@ -22,7 +22,5 @@ steps: displayName: 'Record Published Versions' workingDirectory: '$(Agent.BuildDirectory)/tsdoc' - # Published by the 1ES template - # - publish: $(Build.ArtifactStagingDirectory)/published-versions - # artifact: published-versions - # displayName: 'Publish Artifact: published-versions' + - script: 'node repo-scripts/repo-toolbox/lib/start.js collect-json-schemas --output-path $(Build.ArtifactStagingDirectory)/json-schemas' + displayName: 'Collect JSON Schemas' diff --git a/tsdoc/config/heft.json b/tsdoc/config/heft.json index 97e3475d..9b2e0e36 100644 --- a/tsdoc/config/heft.json +++ b/tsdoc/config/heft.json @@ -23,6 +23,23 @@ ] } } + }, + + "copy-json-schemas": { + "taskPlugin": { + "pluginPackage": "@rushstack/heft", + "pluginName": "copy-files-plugin", + "options": { + "copyOperations": [ + { + "sourcePath": "src/schemas/v0", + "destinationFolders": ["temp/json-schemas/tsdoc"], + "fileExtensions": [".schema.json"], + "hardlink": true + } + ] + } + } } } } From 739e3ab752d10598251783997f1d2650f2896955 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 4 Nov 2025 13:50:13 -0800 Subject: [PATCH 2/3] fixup! Collect JSON Schemas during publish. --- .../tsdoc/collect-schemas_2025-11-04-21-49.json | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 common/changes/@microsoft/tsdoc/collect-schemas_2025-11-04-21-49.json diff --git a/common/changes/@microsoft/tsdoc/collect-schemas_2025-11-04-21-49.json b/common/changes/@microsoft/tsdoc/collect-schemas_2025-11-04-21-49.json new file mode 100644 index 00000000..7f44f432 --- /dev/null +++ b/common/changes/@microsoft/tsdoc/collect-schemas_2025-11-04-21-49.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "", + "type": "none", + "packageName": "@microsoft/tsdoc" + } + ], + "packageName": "@microsoft/tsdoc", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file From 101b56eb32bc64c82dea2a5bf8bfe22c29b80762 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 4 Nov 2025 13:58:21 -0800 Subject: [PATCH 3/3] Update common/config/azure-pipelines/templates/post-publish.yaml --- common/config/azure-pipelines/templates/post-publish.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/config/azure-pipelines/templates/post-publish.yaml b/common/config/azure-pipelines/templates/post-publish.yaml index b3aed420..ff871bcb 100644 --- a/common/config/azure-pipelines/templates/post-publish.yaml +++ b/common/config/azure-pipelines/templates/post-publish.yaml @@ -24,3 +24,5 @@ steps: - script: 'node repo-scripts/repo-toolbox/lib/start.js collect-json-schemas --output-path $(Build.ArtifactStagingDirectory)/json-schemas' displayName: 'Collect JSON Schemas' + workingDirectory: '$(Agent.BuildDirectory)/tsdoc' +