From 0b8b4a93690d7c5b2a436eb7c1f131f12d39a2a6 Mon Sep 17 00:00:00 2001 From: ramsessanchez <63934382+ramsessanchez@users.noreply.github.com> Date: Fri, 5 Jun 2026 16:25:56 -0700 Subject: [PATCH] chore: replace .npmrc creation with npm@1 task in daily CI build Replace the 3-step .npmrc creation, npmAuthenticate, and npm ci script with a single npm@1 task using customRegistry/customFeed, matching the pattern from microsoftgraph/msgraph-sdk-typescript-core#583. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .azure-pipelines/daily-ci-build.yml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.azure-pipelines/daily-ci-build.yml b/.azure-pipelines/daily-ci-build.yml index 6bb6bb363bd..69e00cc1c8f 100644 --- a/.azure-pipelines/daily-ci-build.yml +++ b/.azure-pipelines/daily-ci-build.yml @@ -48,20 +48,14 @@ extends: inputs: versionSpec: '20.x' - - script: | - echo "registry=$(NPM_REGISTRY_URL)" > .npmrc - echo "always-auth=true" >> .npmrc - displayName: Create .npmrc for Azure Artifacts feed - workingDirectory: $(Build.SourcesDirectory) - - - task: npmAuthenticate@0 - displayName: Authenticate npm - inputs: - workingFile: $(Build.SourcesDirectory)/.npmrc - - - script: npm ci + - task: npm@1 displayName: Install dependencies - workingDirectory: $(Build.SourcesDirectory) + inputs: + command: 'ci' + verbose: true + customRegistry: 'useFeed' + customFeed: 'Graph Developer Experiences/msgraph-typescript' + workingDir: '$(Build.SourcesDirectory)' - script: npm run build --workspaces displayName: Build SDK