Skip to content

Commit 8d8bac6

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

1 file changed

Lines changed: 17 additions & 6 deletions

File tree

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

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,27 @@ extends:
4040
name: Azure-Pipelines-1ESPT-ExDShared
4141
os: windows
4242
stages:
43+
# ──────────────────────────────────────────────────────────────────────────
44+
# Stage 0: Wait for packages to propagate to the npm registry
45+
# ──────────────────────────────────────────────────────────────────────────
46+
- stage: WaitForPropagation
47+
displayName: 'Wait for npm propagation'
48+
jobs:
49+
- job:
50+
pool: server
51+
timeoutInMinutes: 120
52+
steps:
53+
- task: Delay@1
54+
displayName: 'Wait ${{ parameters.delayMinutes }} minute(s)'
55+
inputs:
56+
delayForMinutes: '${{ parameters.delayMinutes }}'
57+
4358
# ──────────────────────────────────────────────────────────────────────────
4459
# Stage 1: Bump decoupled local dependencies
4560
# ──────────────────────────────────────────────────────────────────────────
4661
- stage: BumpDecoupledDeps
4762
displayName: 'Bump decoupled local dependencies'
63+
dependsOn: WaitForPropagation
4864
variables:
4965
BranchName: 'automated/bump-decoupled-deps'
5066
CommitMessage: 'chore: bump decoupled local dependencies'
@@ -57,11 +73,6 @@ extends:
5773
- checkout: self
5874
persistCredentials: true
5975

60-
- bash: |
61-
echo "Waiting ${{ parameters.delayMinutes }} minute(s) for packages to propagate to npm..."
62-
sleep $(( ${{ parameters.delayMinutes }} * 60 ))
63-
displayName: 'Wait for packages to propagate'
64-
6576
- template: /common/config/azure-pipelines/templates/install-node.yaml@self
6677

6778
- script: 'git config --local user.email rushbot@users.noreply.github.com'
@@ -119,7 +130,7 @@ extends:
119130
# ──────────────────────────────────────────────────────────────────────────
120131
- stage: UpdateApiDocs
121132
displayName: 'Update API documentation'
122-
dependsOn: [] # Run in parallel with BumpDecoupledDeps
133+
dependsOn: WaitForPropagation
123134
variables:
124135
BranchName: 'automated/update-api-docs'
125136
CommitMessage: 'docs: update API documentation'

0 commit comments

Comments
 (0)