Skip to content

Commit

Permalink
Avoid using yarn task
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Nov 23, 2021
1 parent c2e4d50 commit f08993e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions azure-pipelines.yml
Expand Up @@ -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
Expand Down

0 comments on commit f08993e

Please sign in to comment.