Skip to content

Commit 061aaa7

Browse files
committed
Avoid using yarn task
1 parent c2e4d50 commit 061aaa7

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

azure-pipelines.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,11 @@ stages:
9393
nugetConfigPath: src/nuget.config
9494
workingDirectory: src
9595

96-
- task: YarnInstaller@3
97-
displayName: 'Use Yarn 1.x'
98-
- task: Yarn@3
99-
displayName: 'Yarn install'
100-
inputs:
101-
projectDirectory: 'src/nerdbank-gitversioning.npm'
96+
- script: npm i -g yarn@">=1.22 <2.0"
97+
displayName: Installing yarn
98+
99+
- script: yarn --cwd src/nerdbank-gitversioning.npm
100+
displayName: Installing NPM packages
102101

103102
- script: dotnet build -c $(BuildConfiguration) --no-restore /t:build,pack /bl:"$(Build.ArtifactStagingDirectory)/build_logs/msbuild.binlog"
104103
displayName: Build NuGet package and tests

0 commit comments

Comments
 (0)