Skip to content

Commit b00cd54

Browse files
authored
Merge pull request #449 from iclanton/collect-schemas
Collect JSON Schemas during publish.
2 parents 87c923c + 101b56e commit b00cd54

File tree

4 files changed

+36
-5
lines changed

4 files changed

+36
-5
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "",
5+
"type": "none",
6+
"packageName": "@microsoft/tsdoc"
7+
}
8+
],
9+
"packageName": "@microsoft/tsdoc",
10+
"email": "[email protected]"
11+
}

common/config/azure-pipelines/npm-publish.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ extends:
3131
- output: pipelineArtifact
3232
targetPath: $(Build.ArtifactStagingDirectory)/published-versions
3333
artifactName: published-versions
34+
- output: pipelineArtifact
35+
targetPath: $(Build.ArtifactStagingDirectory)/json-schemas
36+
artifactName: json-schemas
3437
steps:
3538
- checkout: self
3639
persistCredentials: true
@@ -42,4 +45,4 @@ extends:
4245

4346
- template: /common/config/azure-pipelines/templates/publish.yaml@self
4447

45-
- template: /common/config/azure-pipelines/templates/record-published-versions.yaml@self
48+
- template: /common/config/azure-pipelines/templates/post-publish.yaml@self

common/config/azure-pipelines/templates/record-published-versions.yaml renamed to common/config/azure-pipelines/templates/post-publish.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ steps:
2222
displayName: 'Record Published Versions'
2323
workingDirectory: '$(Agent.BuildDirectory)/tsdoc'
2424

25-
# Published by the 1ES template
26-
# - publish: $(Build.ArtifactStagingDirectory)/published-versions
27-
# artifact: published-versions
28-
# displayName: 'Publish Artifact: published-versions'
25+
- script: 'node repo-scripts/repo-toolbox/lib/start.js collect-json-schemas --output-path $(Build.ArtifactStagingDirectory)/json-schemas'
26+
displayName: 'Collect JSON Schemas'
27+
workingDirectory: '$(Agent.BuildDirectory)/tsdoc'
28+

tsdoc/config/heft.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,23 @@
2323
]
2424
}
2525
}
26+
},
27+
28+
"copy-json-schemas": {
29+
"taskPlugin": {
30+
"pluginPackage": "@rushstack/heft",
31+
"pluginName": "copy-files-plugin",
32+
"options": {
33+
"copyOperations": [
34+
{
35+
"sourcePath": "src/schemas/v0",
36+
"destinationFolders": ["temp/json-schemas/tsdoc"],
37+
"fileExtensions": [".schema.json"],
38+
"hardlink": true
39+
}
40+
]
41+
}
42+
}
2643
}
2744
}
2845
}

0 commit comments

Comments
 (0)