Skip to content

Sync eng/common directory with azure-sdk-tools for PR 14557#45760

Merged
azure-sdk merged 1 commit intomainfrom
sync-eng/common-fix/npmrc-emitter-archetype-14557
Mar 18, 2026
Merged

Sync eng/common directory with azure-sdk-tools for PR 14557#45760
azure-sdk merged 1 commit intomainfrom
sync-eng/common-fix/npmrc-emitter-archetype-14557

Conversation

@azure-sdk
Copy link
Collaborator

Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#14557 See eng/common workflow

@azure-sdk azure-sdk requested a review from a team as a code owner March 17, 2026 22:50
@azure-sdk azure-sdk added EngSys This issue is impacting the engineering system. Central-EngSys This issue is owned by the Engineering System team. labels Mar 17, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Syncs the TypeSpec emitter archetype pipeline with the corresponding change in azure-sdk-tools (PR 14557) by ensuring an authenticated .npmrc is created before running TypeSpec initialization in both Build and Test jobs.

Changes:

  • Add a create-authenticated-npmrc.yml step in the Build job to generate/authenticate an .npmrc under the emitter package directory.
  • Add the same .npmrc creation/authentication step in the Test job before initialization.

@azure-sdk azure-sdk force-pushed the sync-eng/common-fix/npmrc-emitter-archetype-14557 branch 2 times, most recently from 71c1d9d to 5c00997 Compare March 18, 2026 00:03
@azure-sdk azure-sdk force-pushed the sync-eng/common-fix/npmrc-emitter-archetype-14557 branch from 5c00997 to 4321bee Compare March 18, 2026 00:55
npm does not walk up directories to find .npmrc, so create the
.npmrc dynamically in Agent.TempDirectory before running npm commands.
Pass NPM_CONFIG_USERCONFIG env var so npm finds it. Covers both the
emitter Initialize-WorkingDirectory steps and the tsp-client install.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@azure-sdk azure-sdk force-pushed the sync-eng/common-fix/npmrc-emitter-archetype-14557 branch from 4321bee to c42156d Compare March 18, 2026 01:38
@azure-sdk azure-sdk merged commit aee2fb7 into main Mar 18, 2026
16 checks passed
@azure-sdk azure-sdk deleted the sync-eng/common-fix/npmrc-emitter-archetype-14557 branch March 18, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Central-EngSys This issue is owned by the Engineering System team. EngSys This issue is impacting the engineering system.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants