@@ -27,18 +27,17 @@ extends:
2727 customBuildTags :
2828 - ES365AIMigrationTooling
2929 stages :
30- - stage : stage
30+ - stage : build
3131 jobs :
3232 - job : job
3333 templateContext :
3434 outputs :
35- - output : pipelineArtifact
35+ - output : build-drop
3636 displayName : ' Publish Artifact: drop'
3737 targetPath : ' $(Build.ArtifactStagingDirectory)'
3838 steps :
3939 - checkout : self
4040 displayName : checkout main
41- - template : /.azure-pipelines/common-templates/security-pre-checks.yml@self
4241 - task : CopyFiles@2
4342 displayName : ' Copy Files to staging directory'
4443 inputs :
@@ -52,4 +51,34 @@ extends:
5251 !.vscode/**
5352 !typings-demo.gif
5453 TargetFolder : ' $(Build.ArtifactStagingDirectory)'
55- - template : /.azure-pipelines/common-templates/security-post-checks.yml@self
54+
55+
56+ - stage : deploy
57+ condition : and(contains(variables['build.sourceBranch'], 'refs/heads/main'), succeeded())
58+ jobs :
59+ - deployment : deploy_npm
60+ pool :
61+ name : Azure-Pipelines-1ESPT-ExDShared
62+ os : windows
63+ image : windows-latest
64+ dependsOn : []
65+ environment : msgraph-npm-org
66+ strategy :
67+ runOnce :
68+ deploy :
69+ steps :
70+ - download : current
71+ artifact : build-drop
72+ - task : EsrpRelease@5
73+ inputs :
74+ ConnectedServiceName : ' MsGraph-ESRP-Publisher-Service-Connection'
75+ Intent : ' PackageDistribution'
76+ ContentType : ' npm'
77+ ContentSource : ' Folder'
78+ FolderLocation : $(Pipeline.Workspace)/build-drop/
79+ WaitForReleaseCompletion : true
80+ 81+ 82+ ServiceEndpointUrl : ' https://api.esrp.microsoft.com'
83+ MainPublisher : ' ESRPRELPACMAN'
84+ DomainTenantId : ' cdc5aeea-15c5-4db6-b079-fcadd2505dc2'
0 commit comments