Skip to content

Commit 946c8a4

Browse files
committed
Add private NPM registry only during ADO build
As it was breaking Dependabot and local builds.
1 parent 45dd36a commit 946c8a4

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

.npmrc

-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
; We use Dependabot to update our packages, so we want to add without a prefix
22
save-exact=true
3-
; We download from a private feed during the release process
4-
registry=https://pkgs.dev.azure.com/powershell-rel/PowerShellEditorServices/_packaging/PSESFeed/npm/registry/
5-
always-auth=true

.vsts-ci/templates/ci-general.yml

+9
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@ steps:
5656
inputs:
5757
version: 18.x
5858

59+
- task: PowerShell@2
60+
displayName: Add private NPM registry
61+
inputs:
62+
targetType: inline
63+
pwsh: true
64+
script: |
65+
Add-Content .npmrc "always-auth=true"
66+
Add-Content .npmrc "registry=https://pkgs.dev.azure.com/powershell-rel/PowerShellEditorServices/_packaging/PSESFeed/npm/registry/"
67+
5968
- task: npmAuthenticate@0
6069
inputs:
6170
workingFile: $(Build.SourcesDirectory)/vscode-powershell/.npmrc

.vsts-ci/templates/publish-markets.yml

+9
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ steps:
55
artifact: vscode-powershell
66
displayName: Download signed artifacts
77

8+
- task: PowerShell@2
9+
displayName: Add private NPM registry
10+
inputs:
11+
targetType: inline
12+
pwsh: true
13+
script: |
14+
Add-Content .npmrc "always-auth=true"
15+
Add-Content .npmrc "registry=https://pkgs.dev.azure.com/powershell-rel/PowerShellEditorServices/_packaging/PSESFeed/npm/registry/"
16+
817
- task: npmAuthenticate@0
918
inputs:
1019
workingFile: .npmrc

0 commit comments

Comments
 (0)