File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments