Skip to content

Commit 9938fd5

Browse files
iclantonclaude
andauthored
Wire up plugin for recording published versions; update autoinstaller bumping (microsoft#5723)
* Add the Rush plugin for recording published versions. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Replace record-versions step with Rush plugin in post-publish pipeline. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Remove repo-toolbox record-versions action. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Update bump-decoupled-local-dependencies to update autoinstallers. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fixup! Update bump-decoupled-local-dependencies to update autoinstallers. * Clean up pipeline YAML. * fixup! Update bump-decoupled-local-dependencies to update autoinstallers. * Address PR feedback: use install-run-rush.yaml template; add run-repo-toolbox.yaml template Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b00d183 commit 9938fd5

11 files changed

Lines changed: 486 additions & 94 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "plugins",
3+
"version": "1.0.0",
4+
"private": true,
5+
"dependencies": {
6+
"@rushstack/rush-published-versions-json-plugin": "0.1.0"
7+
}
8+
}

common/autoinstallers/plugins/pnpm-lock.yaml

Lines changed: 316 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/rush/v5/rush-plugin-manifest.schema.json",
3+
"plugins": [
4+
{
5+
"pluginName": "rush-published-versions-json-plugin",
6+
"description": "A Rush plugin for generating a JSON file containing the versions of all published packages in the monorepo.",
7+
"entryPoint": "./lib-commonjs/index.js",
8+
"associatedCommands": ["record-published-versions"],
9+
"commandLineJsonFilePath": "./command-line.json"
10+
}
11+
]
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/rush/v5/command-line.schema.json",
3+
"commands": [
4+
{
5+
"commandKind": "globalPlugin",
6+
"name": "record-published-versions",
7+
"summary": "Generates a JSON file recording the version numbers of all published packages.",
8+
"safeForSimultaneousRushProcesses": true
9+
}
10+
],
11+
"parameters": [
12+
{
13+
"parameterKind": "string",
14+
"longName": "--output-path",
15+
"shortName": "-o",
16+
"argumentName": "FILE_PATH",
17+
"description": "The path to the output JSON file. Relative paths are resolved from the repo root.",
18+
"associatedCommands": ["record-published-versions"],
19+
"required": true
20+
}
21+
]
22+
}

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

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,21 @@ extends:
111111
--verbose
112112
DisplayName: 'Rush Build (repo-toolbox)'
113113

114-
- script: 'node repo-scripts/repo-toolbox/lib-commonjs/start.js bump-decoupled-local-dependencies'
115-
displayName: 'Bump decoupled local dependencies'
114+
- template: /common/config/azure-pipelines/templates/run-repo-toolbox.yaml@self
115+
parameters:
116+
Arguments: 'bump-decoupled-local-dependencies'
117+
DisplayName: 'Bump decoupled local dependencies'
116118

117119
- template: /common/config/azure-pipelines/templates/install-run-rush.yaml@self
118120
parameters:
119121
Arguments: 'update'
120122
DisplayName: 'Rush Update'
121123

124+
- template: /common/config/azure-pipelines/templates/install-run-rush.yaml@self
125+
parameters:
126+
Arguments: 'update-autoinstaller --name plugins'
127+
DisplayName: 'Rush Update Autoinstaller (plugins)'
128+
122129
- bash: cp common/temp/install-run/@microsoft+rush@*/package-lock.json common/config/validation/rush-package-lock.json
123130
displayName: 'Update rush-package-lock.json'
124131

@@ -206,7 +213,11 @@ extends:
206213
# Run api-documenter with the Docusaurus plugin from the
207214
# api.rushstack.io project directory so it picks up
208215
# config/api-documenter.json.
209-
- script: 'npx @microsoft/api-documenter@latest generate --input-folder $(Pipeline.Workspace)/api --output-folder ./docs/pages'
216+
- script: >
217+
npx @microsoft/api-documenter@latest
218+
generate
219+
--input-folder $(Pipeline.Workspace)/api
220+
--output-folder ./docs/pages
210221
displayName: 'Generate API documentation'
211222
workingDirectory: websites/api.rushstack.io
212223

0 commit comments

Comments
 (0)