Merge pull request #4475 from crobibero/npm-ci-remove-v2

Fix api client ci condition
This commit is contained in:
Bill Thornton 2020-11-16 20:16:38 -05:00 committed by GitHub
commit be0ddf02b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,7 @@
jobs: jobs:
- job: GenerateApiClients - job: GenerateApiClients
displayName: 'Generate Api Clients' displayName: 'Generate Api Clients'
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
dependsOn: Test dependsOn: Test
pool: pool:
@ -37,7 +38,6 @@ jobs:
## Generate npm api client ## Generate npm api client
- task: CmdLine@2 - task: CmdLine@2
displayName: 'Build stable typescript axios client' displayName: 'Build stable typescript axios client'
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
inputs: inputs:
script: "bash ./apiclient/templates/typescript/axios/generate.sh $(System.ArtifactsDirectory)" script: "bash ./apiclient/templates/typescript/axios/generate.sh $(System.ArtifactsDirectory)"
@ -51,7 +51,6 @@ jobs:
## Publish npm packages ## Publish npm packages
- task: Npm@1 - task: Npm@1
displayName: 'Publish stable typescript axios client' displayName: 'Publish stable typescript axios client'
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
inputs: inputs:
command: publish command: publish
publishRegistry: useExternalRegistry publishRegistry: useExternalRegistry