Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions eng/pipelines/templates/BuildAndTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,19 +167,16 @@ steps:
$(_OfficialBuildIdArgs)
displayName: Pack docs transport package

- task: npmAuthenticate@0
inputs:
workingFile: $(Build.SourcesDirectory)/src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript/.npmrc
displayName: Authenticate npm for Azure DevOps plugin (root)

- task: npmAuthenticate@0
inputs:
workingFile: $(Build.SourcesDirectory)/src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript/azure-devops-report/tasks/PublishAIEvaluationReport/.npmrc
displayName: Authenticate npm for Azure DevOps plugin (task)

- pwsh: |
$(Build.SourcesDirectory)/src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript/azure-devops-report/build.ps1 -OutputPath $(Build.Arcade.VSIXOutputPath)
displayName: Build Azure DevOps plugin
env:
# Some CI agents have stale npm auth tokens in the user-level .npmrc
# (e.g. C:\Users\cloudtest\.npmrc). npm sends these stale credentials
# to the public dotnet-public-npm feed, causing E401 errors. Override
# the user config path to a non-existent file so npm ignores stale
# credentials and uses anonymous access for the public feed.
NPM_CONFIG_USERCONFIG: $(Agent.TempDirectory)/.npmrc-not-exists

- script: ${{ parameters.buildScript }}
-restore
Expand Down
Loading