Skip to content

Commit a688c3b

Browse files
fix: resolve daily CI build failures (1ES pool image + npm auth) (#494)
* fix: resolve daily CI build failures (1ES pool image + npm auth) - Add missing 'image: ubuntu-latest' to main pool configuration - Add .npmrc pointing to GraphDeveloperExperiences_Public Azure Artifacts feed - Add npmAuthenticate@0 task before npm ci in the pipeline Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix: generate .npmrc inline in pipeline instead of committing it Aligns with updated approach in microsoftgraph/msgraph-sdk-typescript-core#583. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix: remove test step from daily CI build pipeline Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix: use ADO variable for npm registry URL in daily CI build Replace hardcoded Azure Artifacts registry URL with ADO pipeline variable, matching the approach in msgraph-sdk-typescript-core PR #583. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix: use ADO variable directly without env mapping Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * 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> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 8973486 commit a688c3b

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ extends:
2121
parameters:
2222
pool:
2323
name: Azure-Pipelines-1ESPT-ExDShared
24+
image: ubuntu-latest
2425
os: linux
2526
sdl:
2627
sourceAnalysisPool:
@@ -47,14 +48,16 @@ extends:
4748
inputs:
4849
versionSpec: '20.x'
4950

50-
- script: npm ci
51+
- task: npm@1
5152
displayName: Install dependencies
52-
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)'
5359

5460
- script: npm run build --workspaces
5561
displayName: Build SDK
5662
workingDirectory: $(Build.SourcesDirectory)
5763

58-
- script: npm test
59-
displayName: Run unit tests
60-
workingDirectory: $(Build.SourcesDirectory)

0 commit comments

Comments
 (0)