aboutsummaryrefslogtreecommitdiff
path: root/.ci
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2020-10-04 19:03:39 -0400
committerJoshua M. Boniface <joshua@boniface.me>2020-10-04 19:03:39 -0400
commitfc28ffea53861ea7e8c35d71dcf863e4900f4d8f (patch)
treeb70c6728f6a72905a23046ec4d67c8b0f062cc98 /.ci
parentd11adeb85ee82c3699f5a3a2e4f660623a19df78 (diff)
Improve handling of apiclient generator
1. Replace the separate stable/unstable scripts with a single script and handle the difference with argument parsing. 2. Unify the calls and pass the Azure arguments in on the CLI.
Diffstat (limited to '.ci')
-rw-r--r--.ci/azure-pipelines-api-client.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.ci/azure-pipelines-api-client.yml b/.ci/azure-pipelines-api-client.yml
index 7f428aec1..d120593ea 100644
--- a/.ci/azure-pipelines-api-client.yml
+++ b/.ci/azure-pipelines-api-client.yml
@@ -34,7 +34,7 @@ jobs:
displayName: 'Build unstable typescript axios client'
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/master')
inputs:
- script: 'bash ./apiclient/templates/typescript/axios/unstable.sh'
+ script: "bash ./apiclient/templates/typescript/axios/generate.sh $(System.ArtifactsDirectory) $(Build.BuildNumber)"
- task: Npm@1
displayName: 'Publish unstable typescript axios client'
@@ -50,7 +50,7 @@ jobs:
displayName: 'Build stable typescript axios client'
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
inputs:
- script: 'bash ./apiclient/templates/typescript/axios/stable.sh'
+ script: "bash ./apiclient/templates/typescript/axios/generate.sh $(System.ArtifactsDirectory)"
- task: Npm@1
displayName: 'Publish stable typescript axios client'