Browse Source

Fix repo connections

crobibero 4 years ago
parent
commit
3d20ff69d4

+ 2 - 10
.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

+ 1 - 1
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/"