diff --git a/tools/pipelines/build-docs.yml b/tools/pipelines/build-docs.yml index 05b74e56b2e5..19cef6ee0032 100644 --- a/tools/pipelines/build-docs.yml +++ b/tools/pipelines/build-docs.yml @@ -202,7 +202,8 @@ stages: inputs: targetType: 'inline' script: | - npm i -g pnpm + npm i -g pnpm@7.30.5 + pnpm -v pnpm config set store-dir $(pnpmStorePath) - task: Bash@3 diff --git a/tools/pipelines/repo-policy-check.yml b/tools/pipelines/repo-policy-check.yml index 47e2592dcdb7..a75c7fb897d1 100644 --- a/tools/pipelines/repo-policy-check.yml +++ b/tools/pipelines/repo-policy-check.yml @@ -45,7 +45,8 @@ steps: inputs: targetType: 'inline' script: | - npm i -g pnpm + npm i -g pnpm@7.30.5 + pnpm -v pnpm config set store-dir $(pnpmStorePath) - task: Bash@3 diff --git a/tools/pipelines/templates/build-docker-service.yml b/tools/pipelines/templates/build-docker-service.yml index 59e517216364..be6d6c46a96c 100644 --- a/tools/pipelines/templates/build-docker-service.yml +++ b/tools/pipelines/templates/build-docker-service.yml @@ -242,7 +242,8 @@ stages: targetType: 'inline' workingDirectory: ${{ parameters.buildDirectory }} script: | - npm i -g pnpm + npm i -g pnpm@7.30.5 + pnpm -v pnpm config set store-dir $(pnpmStorePath) # Set version diff --git a/tools/pipelines/templates/build-npm-package.yml b/tools/pipelines/templates/build-npm-package.yml index e2802e49890e..efdd436aee8f 100644 --- a/tools/pipelines/templates/build-npm-package.yml +++ b/tools/pipelines/templates/build-npm-package.yml @@ -255,7 +255,8 @@ stages: targetType: 'inline' workingDirectory: ${{ parameters.buildDirectory }} script: | - npm i -g pnpm + npm i -g pnpm@7.30.5 + pnpm -v pnpm config set store-dir $(pnpmStorePath) - task: Bash@3 diff --git a/tools/pipelines/templates/include-policy-check.yml b/tools/pipelines/templates/include-policy-check.yml index d3d5fa68a58f..904f45d4e81f 100644 --- a/tools/pipelines/templates/include-policy-check.yml +++ b/tools/pipelines/templates/include-policy-check.yml @@ -41,7 +41,8 @@ stages: workingDirectory: ${{ parameters.buildDirectory }} script: | # Install pnpm globally - npm i -g pnpm + npm i -g pnpm@7.30.5 + pnpm -v # We only want to install the root package deps, so we set recursive-install to false pnpm config set recursive-install false diff --git a/tools/pipelines/templates/include-set-package-version.yml b/tools/pipelines/templates/include-set-package-version.yml index 05468254c4bb..84fef0b98291 100644 --- a/tools/pipelines/templates/include-set-package-version.yml +++ b/tools/pipelines/templates/include-set-package-version.yml @@ -44,7 +44,8 @@ steps: workingDirectory: ${{ parameters.buildDirectory }} script: | pushd "$(Build.SourcesDirectory)/build-tools" - npm i -g pnpm + npm i -g pnpm@7.30.5 + pnpm -v pnpm config set store-dir $(pnpmStorePath) pnpm i pnpm build:compile diff --git a/tools/pipelines/templates/include-test-stability.yml b/tools/pipelines/templates/include-test-stability.yml index 11988b54cd39..ed4bab9e25b6 100644 --- a/tools/pipelines/templates/include-test-stability.yml +++ b/tools/pipelines/templates/include-test-stability.yml @@ -84,7 +84,8 @@ jobs: targetType: 'inline' workingDirectory: ${{ parameters.buildDirectory }} script: | - npm i -g pnpm + npm i -g pnpm@7.30.5 + pnpm -v pnpm config set store-dir $(pnpmStorePath) - task: Bash@3