Skip to content

Commit 87015ed

Browse files
authored
Use @npm task (#1152)
* remove global config and test * add sqlbindings to path * test with sqltools feed * remove globalconfig * add globalConfig back * undo .npmrc
1 parent 51fe054 commit 87015ed

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

builds/azure-pipelines/template-steps-build-test.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,19 @@ steps:
2424
inputs:
2525
workingFile: $(Build.SourcesDirectory)/.npmrc
2626

27-
- script: npm install azure-functions-core-tools --global --globalconfig $(Build.SourcesDirectory)/.npmrc --loglevel verbose
27+
- task: Npm@1
2828
displayName: 'Install Azure Functions Core Tools'
29+
inputs:
30+
command: 'custom'
31+
customCommand: 'install azure-functions-core-tools --global --globalconfig $(Build.SourcesDirectory)/.npmrc --loglevel verbose'
32+
workingDir: '$(Build.SourcesDirectory)'
2933

30-
- script: npm install azurite --global --globalconfig $(Build.SourcesDirectory)/.npmrc --loglevel verbose
34+
- task: Npm@1
3135
displayName: 'Install Azurite Local Storage Emulator'
36+
inputs:
37+
command: 'custom'
38+
customCommand: 'install azurite --global --globalconfig $(Build.SourcesDirectory)/.npmrc --loglevel verbose'
39+
workingDir: '$(Build.SourcesDirectory)'
3240

3341
# This step is necessary because npm installs to a non-traditional location on Windows hosted agents
3442
# For non-Windows agents we still want to ensure that we always get the correct location where the tools are installed

0 commit comments

Comments
 (0)