-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Sync eng/common directory with azure-sdk-tools for PR 14353 #37470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,32 @@ | ||||||||||||||||||||||||||||||
| parameters: | ||||||||||||||||||||||||||||||
| Registry: 'https://registry.npmjs.org/' | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| steps: | ||||||||||||||||||||||||||||||
| - task: PowerShell@2 | ||||||||||||||||||||||||||||||
| displayName: 'Set project npm registry' | ||||||||||||||||||||||||||||||
| inputs: | ||||||||||||||||||||||||||||||
| targetType: inline | ||||||||||||||||||||||||||||||
|
Comment on lines
+3
to
+8
|
||||||||||||||||||||||||||||||
| steps: | |
| - task: PowerShell@2 | |
| displayName: 'Set project npm registry' | |
| inputs: | |
| targetType: inline | |
| WorkingDirectory: '$(System.DefaultWorkingDirectory)' | |
| steps: | |
| - task: PowerShell@2 | |
| displayName: 'Set project npm registry' | |
| inputs: | |
| targetType: inline | |
| workingDirectory: ${{ parameters.WorkingDirectory }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This reset-npmrc step now runs even when
SkipPublishingis set totrue(e.g., when no packages are found and publishing is skipped). Previously the registry-change step was conditioned onne(variables['SkipPublishing'], 'true'). Consider applying the same condition to this template call (or adding aCustomConditionparameter to the template) so the job doesn’t mutate npm config unnecessarily when publishing is skipped.