From c1cf04dda5d953e299799eb2425bce20ebc93123 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Tue, 8 Sep 2020 19:09:19 +0200 Subject: [PATCH] [ado] Get rid of trailing quote in npm dist-tag (#585) The only way appears to be to use a bash script. --- .ado/publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.ado/publish.yml b/.ado/publish.yml index 96b6f609d98da2..792d3638c352d4 100644 --- a/.ado/publish.yml +++ b/.ado/publish.yml @@ -35,15 +35,15 @@ jobs: displayName: Validate variables condition: eq(variables.latestStableBranch, '') - - script: echo '##vso[task.setvariable variable=npmDistTag]latest' + - bash: echo "##vso[task.setvariable variable=npmDistTag]latest" displayName: Set dist-tag to latest condition: eq(variables['Build.SourceBranchName'], variables.latestStableBranch) - - script: echo '##vso[task.setvariable variable=npmDistTag]canary' + - bash: echo "##vso[task.setvariable variable=npmDistTag]canary" displayName: Set dist-tag to canary condition: eq(variables['Build.SourceBranchName'], 'master') - - script: echo '##vso[task.setvariable variable=npmDistTag]v${{variables['Build.SourceBranchName']}}' + - bash: echo "##vso[task.setvariable variable=npmDistTag]v${{variables['Build.SourceBranchName']}}" displayName: Set dist-tag to v0.x-stable condition: and(ne(variables['Build.SourceBranchName'], 'master'), ne(variables['Build.SourceBranchName'], variables.latestStableBranch))