Skip to content

Commit e6f11cb

Browse files
committed
chore: add step to rename optional npmrc files
1 parent 9ff2e51 commit e6f11cb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.pipelines/templates/jobs/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ jobs:
4848
- script: npm config list
4949
displayName: List npm properties
5050

51+
- powershell: |
52+
if (Test-Path "$(Pipeline.Workspace)/vscode-website/server/.npmrc.optional") {
53+
mv "$(Pipeline.Workspace)/vscode-website/server/.npmrc.optional" "$(Pipeline.Workspace)/vscode-website/server/.npmrc"
54+
}
55+
displayName: Enforce .npmrc
56+
5157
- task: npmAuthenticate@0
5258
displayName: Setup NPM Authentication
5359
inputs:

0 commit comments

Comments
 (0)