Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion common/config/azure-pipelines/npm-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ variables:

resources:
repositories:
# Use the Azure Pipelines GitHub App identity for the version-bump commit and PR. Unlike the
# "rushbot" user credentials from "checkout: self", this bot identity is exempt from the
# Microsoft CLA check and does not require a separate CLA-signoff pipeline run.
- repository: tsdocGitHubApp
type: github
name: microsoft/tsdoc
endpoint: GitHubProjects
ref: refs/heads/main
- repository: RushstackMainRepo
type: github
name: Microsoft/rushstack
Expand Down Expand Up @@ -72,7 +80,7 @@ extends:
targetPath: $(Build.ArtifactStagingDirectory)/json-schemas
artifactName: json-schemas
steps:
- checkout: self
- checkout: tsdocGitHubApp
persistCredentials: true
path: tsdoc

Expand Down
22 changes: 22 additions & 0 deletions common/config/azure-pipelines/npm-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,21 @@ extends:
pool:
name: publish-rushstack
os: linux
templateContext:
outputParentDirectory: $(Build.ArtifactStagingDirectory)
outputs:
- output: pipelineArtifact
targetPath: $(Build.ArtifactStagingDirectory)/published-versions
artifactName: published-versions
steps:
- checkout: self
persistCredentials: true
path: tsdoc

- bash: |
mkdir -p "$(Build.ArtifactStagingDirectory)/published-versions"
displayName: 'Initialize artifact staging directory'

- template: /common/config/azure-pipelines/templates/install-node.yaml@self

- ${{ if gt(parameters.BumpPipelineRunIdOverride, 0) }}:
Expand All @@ -118,6 +128,18 @@ extends:
Name: FindBumpRun
WorkingDirectory: $(RepoPath)

- task: DownloadPipelineArtifact@2
condition: eq(variables['FindBumpRun.IsVersionBumpMerge'], 'true')
inputs:
artifactName: published-versions
targetPath: $(Build.ArtifactStagingDirectory)/published-versions
project: ${{ parameters.BumpPipelineProject }}
definition: $(FindBumpRun.BumpPipelineDefinitionId)
pipelineId: $(FindBumpRun.BumpPipelineRunId)
buildType: specific
buildVersionToDownload: specific
displayName: 'Stage published versions artifact'

- stage: Publish
displayName: 'Publish NPM Packages via ESRP'
dependsOn:
Expand Down
Loading