From fcec06cfee593d99bc2047917ae98c6557821ebb Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Wed, 4 Nov 2026 18:51:04 +0000 Subject: [PATCH] devops: remove the Azure publish pipeline --- .azure-pipelines/publish.yml | 142 ----------------------------------- 1 file changed, 142 deletions(-) delete mode 100644 .azure-pipelines/publish.yml diff --git a/.azure-pipelines/publish.yml b/.azure-pipelines/publish.yml deleted file mode 100644 index 4b85697..0000000 --- a/.azure-pipelines/publish.yml +++ /dev/null @@ -1,142 +0,0 @@ -# Publishes @playwright/cli via ESRP. Manual trigger only, regular publishing -# is done from GitHub Actions, see .github/workflows/publish.yml. -# Depending on the selected ref, a manual run publishes: -# - @next (alpha with current timestamp) from main -# - @latest from v* release tags -trigger: none - -pr: none - -resources: - repositories: - - repository: 1esPipelines - type: git - name: 1ESPipelineTemplates/1ESPipelineTemplates - ref: refs/tags/release - -extends: - template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines - parameters: - pool: - name: DevDivPlaywrightAzurePipelinesUbuntu2204 - os: linux - sdl: - sourceAnalysisPool: - # SDL tools require windows, see https://aka.ms/AAo6v8e - name: DevDivPlaywrightAzurePipelinesWindows2022 - os: windows - stages: - - stage: Stage - jobs: - - job: Build - displayName: "Build npm package" - templateContext: - outputs: - - output: pipelineArtifact - path: $(Build.ArtifactStagingDirectory)/esrp-build - artifact: esrp-build - steps: - - checkout: self - persistCredentials: false - displayName: "Checkout code" - - - task: Bash@3 - displayName: "Check the branch is main or a v* tag" - inputs: - targetType: "inline" - script: | - if [[ "$BUILD_SOURCE_BRANCH" != "refs/heads/main" && "$BUILD_SOURCE_BRANCH" != refs/tags/v* ]]; then - echo "Can only publish from main or v* tags." - echo "Unexpected branch: $BUILD_SOURCE_BRANCH" - exit 1 - fi - env: - BUILD_SOURCE_BRANCH: $(Build.SourceBranch) - - - task: UseNode@1 - inputs: - version: '24.x' - displayName: "Install Node.js" - - - task: Bash@3 - displayName: "setup .npmrc" - inputs: - targetType: "inline" - script: | - echo "registry=https://devdiv.pkgs.visualstudio.com/DevDiv/_packaging/DevDiv_PublicPackages/npm/registry/" >> .npmrc - - - task: npmAuthenticate@0 - displayName: "authenticate the private npm registry" - inputs: - workingFile: .npmrc - - - script: npm ci - displayName: "npm ci" - - - task: Bash@3 - name: setVersion - displayName: "Set version and dist-tag" - inputs: - targetType: "inline" - script: | - set -e - BASE_VERSION=$(node -p "require('./package.json').version.split('-')[0]") - if [[ "$BUILD_SOURCE_BRANCH" == refs/tags/v* ]]; then - # Release version is already checked in, only publish what the tag points at. - NPM_DIST_TAG="latest" - if [[ "$BUILD_SOURCE_BRANCH" != "refs/tags/v$BASE_VERSION" ]]; then - echo "ERROR: version '$BASE_VERSION' does not match tag '$BUILD_SOURCE_BRANCH'" - exit 1 - fi - else - NPM_DIST_TAG="next" - npm version "${BASE_VERSION}-alpha-$(date +%s)000" --no-git-tag-version - fi - echo "Publishing version $(node -p "require('./package.json').version") with dist-tag $NPM_DIST_TAG" - echo "##vso[task.setvariable variable=npmDistTag;isOutput=true]$NPM_DIST_TAG" - env: - BUILD_SOURCE_BRANCH: $(Build.SourceBranch) - - - task: Bash@3 - displayName: "Pack the package" - inputs: - targetType: "inline" - script: | - set -e - mkdir -p "$(Build.ArtifactStagingDirectory)/esrp-build" - npm pack --pack-destination="$(Build.ArtifactStagingDirectory)/esrp-build" - ls -la "$(Build.ArtifactStagingDirectory)/esrp-build" - - - job: Publish - displayName: "ESRP Release to npm" - dependsOn: Build - variables: - npmDistTag: $[ dependencies.Build.outputs['setVersion.npmDistTag'] ] - templateContext: - type: releaseJob - isProduction: true - inputs: - - input: pipelineArtifact - artifactName: esrp-build - targetPath: $(Build.ArtifactStagingDirectory)/esrp-build - steps: - - checkout: none - - task: EsrpRelease@11 - inputs: - connectedservicename: 'Playwright-ESRP-PME' - usemanagedidentity: true - keyvaultname: 'playwright-esrp-pme' - signcertname: 'ESRP-Release-Sign' - clientid: '13434a40-7de4-4c23-81a3-d843dc81c2c5' - intent: 'PackageDistribution' - contenttype: 'npm' - # npm dist-tag to publish with. - productstate: '$(npmDistTag)' - folderlocation: '$(Build.ArtifactStagingDirectory)/esrp-build' - waitforreleasecompletion: true - owners: 'yurys@microsoft.com' - approvers: 'yurys@microsoft.com' - serviceendpointurl: 'https://api.esrp.microsoft.com' - mainpublisher: 'Playwright' - domaintenantid: '975f013f-7f24-47e8-a7d3-abc4752bf346' - displayName: 'ESRP Release to npm'