Skip to content

Commit aa0a2de

Browse files
Copilotpavelglac
andauthored
Use release artifact input for ADO publishing
Co-authored-by: pavelglac <42679661+pavelglac@users.noreply.github.com>
1 parent ccc28c7 commit aa0a2de

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.azure-devops/release.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,13 @@ extends:
9999
name: Azure-Pipelines-1ESPT-ExDShared
100100
image: ubuntu-latest
101101
os: linux
102+
templateContext:
103+
type: releaseJob
104+
inputs:
105+
- input: pipelineArtifact
106+
artifactName: npm-package-$(Build.BuildId)-$(Build.BuildNumber)
107+
targetPath: $(Pipeline.Workspace)/packages
102108
steps:
103-
- download: current
104-
artifact: npm-package-$(Build.BuildId)-$(Build.BuildNumber)
105-
displayName: Download npm package
106-
107109
- script: |
108110
cat <<'EOF' > "$(Agent.TempDirectory)/npm-private-feed.npmrc"
109111
always-auth=true
@@ -117,7 +119,7 @@ extends:
117119
workingFile: "$(Agent.TempDirectory)/npm-private-feed.npmrc"
118120

119121
- script: |
120-
npm publish "$(Pipeline.Workspace)/npm-package-$(Build.BuildId)-$(Build.BuildNumber)"/*.tgz --registry "$(adoNpmFeedBaseUrl)"
122+
npm publish "$(Pipeline.Workspace)/packages"/*.tgz --registry "$(adoNpmFeedBaseUrl)"
121123
displayName: Publish to private ADO feed
122124
env:
123125
NPM_CONFIG_USERCONFIG: $(Agent.TempDirectory)/npm-private-feed.npmrc

0 commit comments

Comments
 (0)