1- trigger : none # We don't want CI builds, just a manual release process
1+ # Run only on tags (no PRs, no branch CI)
2+ pr : none
3+ trigger :
4+ tags :
5+ include :
6+ - ' *'
7+
28parameters :
39- name : doRelease
410 displayName : Push the Playwright Release to NuGet.org
@@ -12,9 +18,9 @@ parameters:
1218
1319variables :
1420- name : BuildConfiguration
15- value : ' Release'
21+ value : ' Release'
1622- name : TeamName
17- value : Playwright
23+ value : ' Playwright'
1824
1925resources :
2026 repositories :
@@ -44,7 +50,7 @@ extends:
4450 signing :
4551 enabled : true
4652 signType : real
47- templateContext :
53+ signWithProd : true
4854 outputs :
4955 - output : pipelineArtifact
5056 displayName : ' Publish Artifact'
@@ -85,7 +91,10 @@ extends:
8591 versioningScheme : ' off'
8692 - task : 1ES.PublishNuget@1
8793 displayName : Publish Microsoft.Playwright{NUnit,MSTest,Xunit,TestAdapter}
88- condition : eq('${{parameters.doRelease}}', true)
94+ condition : or(
95+ eq('${{ parameters.doRelease }}', true),
96+ startsWith(variables['Build.SourceBranch'], 'refs/tags/')
97+ )
8998 inputs :
9099 useDotNetTask : false
91100 # The reason for the 1.* after the package name is that we know the end of the package name in order to not
@@ -97,7 +106,7 @@ extends:
97106 publishFeedCredentials : ' NuGet-Playwright'
98107 - task : 1ES.PublishNuget@1
99108 displayName : Publish Microsoft.Playwright.CLI
100- condition : eq('${{parameters.doReleaseCLI}}', true)
109+ condition : eq('${{ parameters.doReleaseCLI }}', true)
101110 inputs :
102111 useDotNetTask : false
103112 packagesToPush : ' $(Build.ArtifactStagingDirectory)/nuget/Microsoft.Playwright.CLI.1.*.nupkg'
0 commit comments