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 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 80% rename from common/config/azure-pipelines/templates/record-published-versions.yaml rename to common/config/azure-pipelines/templates/post-publish.yaml index e6b2aca2..ff871bcb 100644 --- a/common/config/azure-pipelines/templates/record-published-versions.yaml +++ b/common/config/azure-pipelines/templates/post-publish.yaml @@ -22,7 +22,7 @@ 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' + workingDirectory: '$(Agent.BuildDirectory)/tsdoc' + 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 + } + ] + } + } } } }