use drop
This commit is contained in:
Родитель
88968ec1e9
Коммит
74940819c9
|
@ -45,13 +45,13 @@ stages:
|
|||
echo "##vso[task.setvariable variable=TAR_NAME;isOutput=true;]$TAR_NAME"
|
||||
name: PackArtifacts
|
||||
- task: CopyFiles@2
|
||||
displayName: "Copy Files to: packages"
|
||||
displayName: "Copy Files to: drop"
|
||||
inputs:
|
||||
Contents: "*.tgz"
|
||||
TargetFolder: packages
|
||||
TargetFolder: drop
|
||||
- task: PublishBuildArtifacts@1
|
||||
inputs:
|
||||
pathtoPublish: $(Build.SourcesDirectory)/packages
|
||||
pathtoPublish: $(Build.SourcesDirectory)/drop
|
||||
- ? ${{if and(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['System.TeamProject'], 'internal'))}}
|
||||
: - stage: Release
|
||||
dependsOn: BuildStage
|
||||
|
@ -72,7 +72,7 @@ stages:
|
|||
versionSpec: "14.x"
|
||||
displayName: "Install Node.js"
|
||||
- script: |
|
||||
cd $(Pipeline.Workspace)/packages
|
||||
cd $(Pipeline.Workspace)/drop
|
||||
npm config set //registry.npmjs.org/:_authToken=$(azure-sdk-npm-token)
|
||||
npm publish $(TAR_NAME) --access public
|
||||
npm config delete //registry.npmjs.org/:_authToken
|
||||
|
|
Загрузка…
Ссылка в новой задаче