Merge pull request #4475 from crobibero/npm-ci-remove-v2
Fix api client ci condition
This commit is contained in:
commit
be0ddf02b3
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user