@@ -8,24 +8,27 @@ parameters:
88
99steps :
1010 - template : /eng/common/pipelines/templates/steps/set-default-branch.yml
11+
1112 - ${{ if eq(parameters.Registry, 'https://registry.npmjs.org/') }} :
12- - task : EsrpRelease@7
13- inputs :
14- displayName : ' Publish ${{parameters.Artifact.name}} to ESRP'
15- ConnectedServiceName : ' Azure SDK Engineering System'
16- ClientId : ' 5f81938c-2544-4f1f-9251-dd9de5b8a81b'
17- KeyVaultName : ' AzureSDKEngKeyVault'
18- AuthCertName : ' azure-sdk-esrp-release-auth-certificate'
19- SignCertName : ' azure-sdk-esrp-release-sign-certificate'
20- Intent : ' PackageDistribution'
21- ContentType : ' npm'
22- FolderLocation : ${{parameters.PathToArtifacts}}
23- Owners : ${{ coalesce(variables['Build.RequestedForEmail'], 'azuresdk@microsoft.com') }}
24- Approvers : ' azuresdk@microsoft.com'
25- ServiceEndpointUrl : ' https://api.esrp.microsoft.com'
26- MainPublisher : ' ESRPRELPACMANTEST'
27- DomainTenantId : ' 72f988bf-86f1-41af-91ab-2d7cd011db47'
28- productstate : ${{parameters.Tag}}
13+ - task : EsrpRelease@7
14+ inputs :
15+ displayName : ' Publish ${{parameters.Artifact.name}} to ESRP'
16+ ConnectedServiceName : ' Azure SDK Engineering System'
17+ ClientId : ' 5f81938c-2544-4f1f-9251-dd9de5b8a81b'
18+ KeyVaultName : ' AzureSDKEngKeyVault'
19+ AuthCertName : ' azure-sdk-esrp-release-auth-certificate'
20+ SignCertName : ' azure-sdk-esrp-release-sign-certificate'
21+ Intent : ' PackageDistribution'
22+ ContentType : ' npm'
23+ FolderLocation : ${{parameters.PathToArtifacts}}
24+ Owners : ${{ coalesce(variables['Build.RequestedForEmail'], 'azuresdk@microsoft.com') }}
25+ Approvers : ' azuresdk@microsoft.com'
26+ ServiceEndpointUrl : ' https://api.esrp.microsoft.com'
27+ MainPublisher : ' ESRPRELPACMANTEST'
28+ DomainTenantId : ' 72f988bf-86f1-41af-91ab-2d7cd011db47'
29+ productstate : ${{parameters.Tag}}
30+
31+ - ${{ if ne(parameters.AdditionalTag, '') }} :
2932 - task : PowerShell@2
3033 displayName : Add Additional Tag
3134 inputs :
@@ -36,11 +39,11 @@ steps:
3639 condition : succeeded()
3740
3841 - ${{ else }} :
39- - task : PowerShell@2
40- displayName : Publish to Dev Feed
41- inputs :
42- targetType : filePath
43- filePath : eng/tools/publish-to-npm.ps1
44- arguments : -pathToArtifacts ${{parameters.PathToArtifacts}} -accessLevel "public" -tag "${{parameters.Tag}}" -additionalTag "${{parameters.AdditionalTag}}" -registry ${{parameters.Registry}} -npmToken $(azure-sdk-npm-token)
45- pwsh : true
46- condition : succeeded()
42+ - task : PowerShell@2
43+ displayName : Publish to Dev Feed
44+ inputs :
45+ targetType : filePath
46+ filePath : eng/tools/publish-to-npm.ps1
47+ arguments : -pathToArtifacts ${{parameters.PathToArtifacts}} -accessLevel "public" -tag "${{parameters.Tag}}" -additionalTag "${{parameters.AdditionalTag}}" -registry ${{parameters.Registry}} -npmToken $(azure-sdk-npm-token)
48+ pwsh : true
49+ condition : succeeded()
0 commit comments