File tree 2 files changed +13
-4
lines changed 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change
1
+ registry = https://registry.npmjs.org
2
+
3
+ always-auth = true
Original file line number Diff line number Diff line change @@ -19,10 +19,15 @@ steps:
19
19
packageType : sdk
20
20
version : ' 3.1.x'
21
21
22
- - script : npm install -g azure-functions-core-tools
22
+ - task : npmAuthenticate@0
23
+ displayName : ' npm Authenticate for project'
24
+ inputs :
25
+ workingFile : $(Build.SourcesDirectory)/.npmrc
26
+
27
+ - script : npm install azure-functions-core-tools --global --globalconfig $(Build.SourcesDirectory)/.npmrc --loglevel verbose
23
28
displayName : ' Install Azure Functions Core Tools'
24
29
25
- - script : npm install -g azurite
30
+ - script : npm install azurite --global --globalconfig $(Build.SourcesDirectory)/.npmrc --loglevel verbose
26
31
displayName : ' Install Azurite Local Storage Emulator'
27
32
28
33
# This step is necessary because npm installs to a non-traditional location on Windows hosted agents
@@ -60,14 +65,15 @@ steps:
60
65
displayName : Set logging level
61
66
condition : and(succeeded(), ne(variables['AFSQLEXT_TEST_LOGLEVEL'], ''))
62
67
68
+
63
69
- script : |
64
- npm install
70
+ npm install --userconfig $(Build.SourcesDirectory)/.npmrc --loglevel verbose
65
71
npm run lint
66
72
workingDirectory : $(Build.SourcesDirectory)/samples/samples-js
67
73
displayName : Lint samples-js
68
74
69
75
- script : |
70
- npm install
76
+ npm install --userconfig $(Build.SourcesDirectory)/.npmrc --loglevel verbose
71
77
npm run lint
72
78
workingDirectory : $(Build.SourcesDirectory)/test/Integration/test-js
73
79
displayName : Lint test-js
You can’t perform that action at this time.
0 commit comments