Skip to content

Commit 360baf7

Browse files
authored
Merge pull request #51 from microsoft/rzhao271/npmrc-fix
fix(ci): add step to rename optional npmrc files
1 parent f5587d6 commit 360baf7

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.config/tsaoptions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"notificationAliases": [
66
77
8-
"gregvanl@microsoft.com"
8+
"nicktrog@microsoft.com"
99
],
1010
"ppe": "false",
1111
"template": "TFSDEVDIV",
12-
"codebaseName": "devdiv_vscode-docs"
12+
"codebaseName": "devdiv_vscode-docs-pr"
1313
}

.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)