Skip to content

Commit fa01671

Browse files
fix: use npm@1 task with Azure Artifacts feed for daily CI build
Replace .npmrc creation + npmAuthenticate@0 + script npm ci with a single npm@1 task using customRegistry/customFeed, matching the approach from microsoftgraph/msgraph-sdk-typescript-core#583. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0b2a7ff commit fa01671

1 file changed

Lines changed: 7 additions & 13 deletions

File tree

.azure-pipelines/daily-ci-build.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,14 @@ extends:
4848
inputs:
4949
versionSpec: '20.x'
5050

51-
- script: |
52-
echo "registry=$(NPM_REGISTRY_URL)" > .npmrc
53-
echo "always-auth=true" >> .npmrc
54-
displayName: Create .npmrc for Azure Artifacts feed
55-
workingDirectory: $(Build.SourcesDirectory)
56-
57-
- task: npmAuthenticate@0
58-
displayName: Authenticate npm
59-
inputs:
60-
workingFile: $(Build.SourcesDirectory)/.npmrc
61-
62-
- script: npm ci
51+
- task: npm@1
6352
displayName: Install dependencies
64-
workingDirectory: $(Build.SourcesDirectory)
53+
inputs:
54+
command: 'ci'
55+
verbose: true
56+
customRegistry: 'useFeed'
57+
customFeed: 'Graph Developer Experiences/GraphDeveloperExperiences_Public'
58+
workingDir: '$(Build.SourcesDirectory)'
6559

6660
- script: npm run build --workspaces
6761
displayName: Build SDK

0 commit comments

Comments
 (0)