Skip to content

Commit 1d1cc0e

Browse files
committed
replaced npm publish with ESRP
1 parent 0e14ced commit 1d1cc0e

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

common/config/azure-pipelines/templates/publish.yaml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,19 @@ parameters:
66
default: $(Build.SourceBranchName)
77

88
steps:
9-
- script: 'node common/scripts/install-run-rush.js publish --apply --publish --include-all --target-branch ${{ parameters.BranchName }} --add-commit-details --set-access-level public'
10-
displayName: 'Rush Publish (Policy: ${{ parameters.VersionPolicyName }})'
11-
env:
12-
NPM_AUTH_TOKEN: $(npmToken)
9+
- task: EsrpRelease@7
10+
inputs:
11+
connectedservicename: 'odsp-web-esrp'
12+
keyvaultname: 'odsp-web-esrp'
13+
authcertname: 'esrp-cert'
14+
signcertname: 'esrp-sign'
15+
clientid: 'be2088dc-be24-46c8-b0b1-aa555603f375'
16+
intent: 'PackageDistribution'
17+
contenttype: 'npm'
18+
folderlocation: '$(System.DefaultWorkingDirectory)/ts/out/pkg'
19+
waitforreleasecompletion: true
20+
21+
approvers: '[email protected]'
22+
serviceendpointurl: 'https://api.esrp.microsoft.com'
23+
mainpublisher: 'ESRPRELPACMAN'
24+
domaintenantid: 'cdc5aeea-15c5-4db6-b079-fcadd2505dc2'

0 commit comments

Comments
 (0)