Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 0 additions & 7 deletions eng/pipelines/templates/BuildAndTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,6 @@ steps:
- 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
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ if ($null -eq $PackageVersion)

Write-Host "Using version $PackageVersion"

# Some CI agents have stale npm auth tokens in user or global .npmrc files
# (e.g. C:\Users\cloudtest\.npmrc) that cause E401 errors against the public
# dotnet-public-npm feed. Override both config paths so npm ignores stale
# agent-level credentials and accesses the public feed anonymously.
$env:NPM_CONFIG_USERCONFIG = "$env:TEMP\no-user-npmrc"
$env:NPM_CONFIG_GLOBALCONFIG = "$env:TEMP\no-global-npmrc"

# Write-Information "Building Report Publishing task"
Set-Location $PSScriptRoot/tasks/PublishAIEvaluationReport
npm ci --omit=dev
Expand Down
Loading