Skip to content

Commit b7045fa

Browse files
committed
fixup! Rename to npm-post-publish, add api artifact, add API docs update stage using multi-repo checkout
1 parent 1e5760c commit b7045fa

1 file changed

Lines changed: 3 additions & 22 deletions

File tree

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

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,6 @@ extends:
129129
name: publish-rushstack
130130
os: linux
131131
steps:
132-
# Check out both repos. AzDO places them in subdirectories named after the
133-
# repo alias when multiple checkouts are used:
134-
# $(Pipeline.Workspace)/s/self (rushstack)
135-
# $(Pipeline.Workspace)/s/rushstackWebsites (rushstack-websites)
136-
- checkout: self
137-
persistCredentials: true
138-
139132
- checkout: rushstackWebsites
140133
persistCredentials: true
141134

@@ -149,20 +142,10 @@ extends:
149142
artifact: api
150143
path: $(Pipeline.Workspace)/api
151144

152-
# Install and build only api-documenter, which is needed to generate
153-
# the markdown output from the *.api.json files.
154-
- script: 'node common/scripts/install-run-rush.js install'
155-
displayName: 'Rush Install'
156-
workingDirectory: $(Pipeline.Workspace)/s/self
157-
158-
- script: 'node common/scripts/install-run-rush.js build --to @microsoft/api-documenter --verbose'
159-
displayName: 'Rush Build (api-documenter)'
160-
workingDirectory: $(Pipeline.Workspace)/s/self
161-
162-
# Run api-documenter to generate markdown files from the *.api.json inputs.
163-
- script: 'node apps/api-documenter/bin/api-documenter markdown --input-folder $(Pipeline.Workspace)/api --output-folder $(Pipeline.Workspace)/api-markdown'
145+
# Install api-documenter from the package feed (just published) and
146+
# generate markdown from the *.api.json inputs.
147+
- script: 'npx @microsoft/api-documenter@latest markdown --input-folder $(Pipeline.Workspace)/api --output-folder $(Pipeline.Workspace)/api-markdown'
164148
displayName: 'Generate API markdown'
165-
workingDirectory: $(Pipeline.Workspace)/s/self
166149

167150
# Update the API docs folder in rushstack-websites and commit.
168151
- bash: |
@@ -190,11 +173,9 @@ extends:
190173
git add --all
191174
git commit -m "$(CommitMessage)"
192175
displayName: 'Update API docs and commit'
193-
workingDirectory: $(Pipeline.Workspace)/s/rushstackWebsites
194176
195177
- template: /common/config/azure-pipelines/templates/push-and-create-github-pr.yaml@self
196178
parameters:
197179
BranchName: $(BranchName)
198180
PrTitle: $(CommitMessage)
199181
PrDescription: 'Automated PR to update API reference documentation from the latest published packages.'
200-
WorkingDirectory: $(Pipeline.Workspace)/s/rushstackWebsites

0 commit comments

Comments
 (0)