aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Lavado <anthony@lavado.ca>2020-10-09 11:40:06 -0400
committerGitHub <noreply@github.com>2020-10-09 11:40:06 -0400
commita9d9f240781a7bbf474ef65a4758a73c2131e17c (patch)
tree32aca1c535903b5dfccdac9ef39f909a6861923a
parent10d48b062315581adc4706530bc388d53ff232a4 (diff)
parent60c0cc1d1cd1b6ebd58b47021652782ceddf232e (diff)
Merge pull request #4299 from crobibero/ci-pls
Fix api client CI
-rw-r--r--.ci/azure-pipelines-api-client.yml8
-rw-r--r--apiclient/templates/typescript/axios/generate.sh2
2 files changed, 8 insertions, 2 deletions
diff --git a/.ci/azure-pipelines-api-client.yml b/.ci/azure-pipelines-api-client.yml
index 132101444..35a494cd6 100644
--- a/.ci/azure-pipelines-api-client.yml
+++ b/.ci/azure-pipelines-api-client.yml
@@ -28,6 +28,12 @@ jobs:
inputs:
script: "wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/${{ parameters.GeneratorVersion }}/openapi-generator-cli-${{ parameters.GeneratorVersion }}.jar -O openapi-generator-cli.jar"
+ - task: Npm@1
+ displayName: 'Install npm dependencies'
+ inputs:
+ command: install
+ workingDir: ./apiclient/generated/typescript/axios
+
# Generate npm api client
# Unstable
- task: CmdLine@2
@@ -42,7 +48,7 @@ jobs:
inputs:
command: publish
publishRegistry: useFeed
- publishFeed: 'unstable@Local'
+ publishFeed: 'jellyfin/unstable'
workingDir: ./apiclient/generated/typescript/axios
# Stable
diff --git a/apiclient/templates/typescript/axios/generate.sh b/apiclient/templates/typescript/axios/generate.sh
index 360fe9f33..8c4d74282 100644
--- a/apiclient/templates/typescript/axios/generate.sh
+++ b/apiclient/templates/typescript/axios/generate.sh
@@ -4,7 +4,7 @@ artifactsDirectory="${1}"
buildNumber="${2}"
if [[ -n ${buildNumber} ]]; then
# Unstable build
- additionalProperties=",snapshotVersion=-SNAPSHOT.${buildNumber},npmRepository=https://pkgs.dev.azure.com/jellyfin-project/jellyfin/_packaging/unstable%40Local/npm/registry/"
+ additionalProperties=",snapshotVersion=-SNAPSHOT.${buildNumber},npmRepository=https://pkgs.dev.azure.com/jellyfin-project/jellyfin/_packaging/unstable/npm/registry/"
else
# Stable build
additionalProperties=""