Log tar name
This commit is contained in:
Родитель
1b6092c132
Коммит
e7cf787e22
|
@ -63,6 +63,8 @@ stages:
|
|||
dependsOn: BuildStage
|
||||
jobs:
|
||||
- deployment: PublishToNpm
|
||||
variables:
|
||||
TAR_NAME: $[ stageDependencies.BuildStage.Build.outputs['PackArtifacts.TAR_NAME'] ]
|
||||
pool:
|
||||
vmImage: "Ubuntu 16.04"
|
||||
environment: npm
|
||||
|
@ -77,9 +79,10 @@ stages:
|
|||
displayName: "Install Node.js"
|
||||
- script: |
|
||||
cd $(Pipeline.Workspace)/drop
|
||||
export TAR_NAME=$(npm pack -q)
|
||||
echo $TAR_NAME
|
||||
echo === tar
|
||||
echo $(TAR_NAME)
|
||||
echo === tar
|
||||
npm config set //registry.npmjs.org/:_authToken=$(azure-sdk-npm-token)
|
||||
npm publish --dry-run $TAR_NAME --access public --tag ${{ parameters.NpmTag }}
|
||||
npm publish --dry-run $(TAR_NAME) --access public --tag ${{ parameters.NpmTag }}
|
||||
npm config delete //registry.npmjs.org/:_authToken
|
||||
displayName: "Publish to NPM"
|
||||
|
|
Загрузка…
Ссылка в новой задаче