From f08993e74ad1149baafcaa480a4516d1b0291cfd Mon Sep 17 00:00:00 2001 From: Andrew Arnott Date: Tue, 23 Nov 2021 10:28:07 -0700 Subject: [PATCH] Avoid using yarn task --- azure-pipelines.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 26a3ac28b..cd08392f0 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -93,12 +93,12 @@ stages: nugetConfigPath: src/nuget.config workingDirectory: src - - task: YarnInstaller@3 - displayName: 'Use Yarn 1.x' - - task: Yarn@3 - displayName: 'Yarn install' - inputs: - projectDirectory: 'src/nerdbank-gitversioning.npm' + - pwsh: | + Write-Host '##[group]Installing yarn' + npm i -g yarn@">=1.22 <2.0" + Write-Host '##[group]Installing NPM packages in src/nerdbank-gitversioning.npm' + yarn --cwd src/nerdbank-gitversioning.npm + displayName: Yarn install - script: dotnet build -c $(BuildConfiguration) --no-restore /t:build,pack /bl:"$(Build.ArtifactStagingDirectory)/build_logs/msbuild.binlog" displayName: Build NuGet package and tests