From dd0315e7f7d811ca39f8e0b142c4897bae84b733 Mon Sep 17 00:00:00 2001 From: Andy Jordan <2226434+andyleejordan@users.noreply.github.com> Date: Mon, 4 Mar 2024 10:18:15 -0800 Subject: [PATCH] Disable Azure Pipelines CI for release branch It is completely superfluous because the release pipeline runs the exact same CI template. Moreover, because it's a different Azure organization, the NPM authentication won't work without setting up and managing a service connection. Run the GitHub Actions CI with the Release configuration. Also run the NPM install scripts because sometimes it will break without them. --- .github/workflows/ci-test.yml | 2 +- .vsts-ci/azure-pipelines-ci.yml | 7 ++----- vscode-powershell.build.ps1 | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 8b9c045950..2bcdef12e3 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -64,7 +64,7 @@ jobs: - name: Build, test and package shell: pwsh - run: Invoke-Build + run: Invoke-Build -Configuration Release env: NPM_PASSWORD: ${{ secrets.AZURE_NPM_PASSWORD_BASE64}} diff --git a/.vsts-ci/azure-pipelines-ci.yml b/.vsts-ci/azure-pipelines-ci.yml index 7c23c8399b..811e29c239 100644 --- a/.vsts-ci/azure-pipelines-ci.yml +++ b/.vsts-ci/azure-pipelines-ci.yml @@ -1,11 +1,8 @@ name: CI-$(Build.SourceBranchName)-$(Date:yyyyMMdd)$(Rev:.rr) +# NOTE: This was superceded by the GitHub Actions workflow. pr: none - -trigger: - branches: - include: - - release +trigger: none variables: # Don't download unneeded packages diff --git a/vscode-powershell.build.ps1 b/vscode-powershell.build.ps1 index ad75b91bbf..5aef944ff8 100644 --- a/vscode-powershell.build.ps1 +++ b/vscode-powershell.build.ps1 @@ -27,7 +27,7 @@ task RestoreNodeModules -If { !(Test-Path ./node_modules) } { # When in a CI build use the --loglevel=error parameter so that # package install warnings don't cause PowerShell to throw up if ($env:CI -or $env:TF_BUILD) { - Invoke-BuildExec { & npm ci --loglevel=error --ignore-scripts } + Invoke-BuildExec { & npm ci --loglevel=error } } else { Invoke-BuildExec { & npm install } }