|
@@ -35,14 +35,6 @@ jobs:
|
|
customEndpoint: 'jellyfin-bot for NPM'
|
|
customEndpoint: 'jellyfin-bot for NPM'
|
|
|
|
|
|
## Generate npm api client
|
|
## Generate npm api client
|
|
-# Unstable
|
|
|
|
- - task: CmdLine@2
|
|
|
|
- displayName: 'Build unstable typescript axios client'
|
|
|
|
- condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/master')
|
|
|
|
- inputs:
|
|
|
|
- script: "bash ./apiclient/templates/typescript/axios/generate.sh $(System.ArtifactsDirectory) $(Build.BuildNumber)"
|
|
|
|
-
|
|
|
|
-# Stable
|
|
|
|
- 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')
|
|
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
|
|
@@ -57,17 +49,6 @@ jobs:
|
|
workingDir: ./apiclient/generated/typescript/axios
|
|
workingDir: ./apiclient/generated/typescript/axios
|
|
|
|
|
|
## Publish npm packages
|
|
## Publish npm packages
|
|
-# Unstable
|
|
|
|
- - task: Npm@1
|
|
|
|
- displayName: 'Publish unstable typescript axios client'
|
|
|
|
- condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/master')
|
|
|
|
- inputs:
|
|
|
|
- command: publish
|
|
|
|
- publishRegistry: useFeed
|
|
|
|
- publishFeed: 'jellyfin/unstable'
|
|
|
|
- workingDir: ./apiclient/generated/typescript/axios
|
|
|
|
-
|
|
|
|
-# Stable
|
|
|
|
- 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')
|
|
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
|