Extract tarname
This commit is contained in:
Родитель
596dfd224a
Коммит
1b6092c132
|
@ -63,8 +63,6 @@ stages:
|
|||
dependsOn: BuildStage
|
||||
jobs:
|
||||
- deployment: PublishToNpm
|
||||
variables:
|
||||
TAR_NAME: $[ stageDependencies.BuildStage.Build.outputs['PackArtifacts.TAR_NAME'] ]
|
||||
pool:
|
||||
vmImage: "Ubuntu 16.04"
|
||||
environment: npm
|
||||
|
@ -78,11 +76,10 @@ stages:
|
|||
versionSpec: "14.x"
|
||||
displayName: "Install Node.js"
|
||||
- script: |
|
||||
tree $(Pipeline.Workspace)
|
||||
cd $(Pipeline.Workspace)/drop
|
||||
echo $(TAR_NAME)
|
||||
tree
|
||||
export TAR_NAME=$(npm pack -q)
|
||||
echo $TAR_NAME
|
||||
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"
|
||||
|
|
Загрузка…
Ссылка в новой задаче