Skip to content

Commit

Permalink
[ado] Get rid of trailing quote in npm dist-tag (facebook#585)
Browse files Browse the repository at this point in the history
The only way appears to be to use a bash script.
  • Loading branch information
alloy authored Sep 8, 2020
1 parent 5a3c0a6 commit c1cf04d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .ado/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit c1cf04d

Please sign in to comment.