aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.ci/azure-pipelines-api-client.yml12
-rw-r--r--apiclient/templates/typescript/axios/unstable.sh2
2 files changed, 3 insertions, 11 deletions
diff --git a/.ci/azure-pipelines-api-client.yml b/.ci/azure-pipelines-api-client.yml
index cbedcc607..dbd70c702 100644
--- a/.ci/azure-pipelines-api-client.yml
+++ b/.ci/azure-pipelines-api-client.yml
@@ -30,10 +30,6 @@ jobs:
# Generate npm api client
# Unstable
- - task: npmAuthenticate@0
- displayName: 'Authenticate to unstable npm feed'
- condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/master')
-
- task: CmdLine@2
displayName: 'Build unstable typescript axios client'
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/master')
@@ -46,14 +42,10 @@ jobs:
inputs:
command: publish
publishRegistry: useFeed
- publishFeed: jellyfin/unstable
+ publishFeed: unstable
workingDir: ./apiclient/generated/typescript/axios
# Stable
- - task: npmAuthenticate@0
- displayName: 'Authenticate to stable npm feed'
- condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
-
- task: CmdLine@2
displayName: 'Build stable typescript axios client'
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
@@ -66,5 +58,5 @@ jobs:
inputs:
command: publish
publishRegistry: useExternalRegistry
- publishEndpoint:
+ publishEndpoint: 'jellyfin-bot for NPM'
workingDir: ./apiclient/generated/typescript/axios
diff --git a/apiclient/templates/typescript/axios/unstable.sh b/apiclient/templates/typescript/axios/unstable.sh
index 83e4ba228..5d85dc726 100644
--- a/apiclient/templates/typescript/axios/unstable.sh
+++ b/apiclient/templates/typescript/axios/unstable.sh
@@ -6,4 +6,4 @@ java -jar openapi-generator-cli.jar generate \
--output ./apiclient/generated/typescript/axios \
--template-dir ./apiclient/templates/typescript/axios \
--ignore-file-override ./apiclient/.openapi-generator-ignore \
- --additional-properties=useSingleRequestParameter="true",withSeparateModelsAndApi="true",npmName="axios",snapshotVersion="-SNAPSHOT.$(Build.BuildNumber)",npmRepository="https://dev.azure.com/jellyfin-project/jellyfin/_packaging"
+ --additional-properties=useSingleRequestParameter="true",withSeparateModelsAndApi="true",npmName="axios",snapshotVersion="-SNAPSHOT.$(Build.BuildNumber)",npmRepository="https://pkgs.dev.azure.com/jellyfin-project/jellyfin/_packaging/unstable/npm/registry/"