Skip to content

Commit a2d1936

Browse files
authored
Use Npm task
The Npm task is better to use than a Script task because it correctly injects credentials and other config
1 parent 2e35b35 commit a2d1936

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

azure-pipelines.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ steps:
88
inputs:
99
versionSpec: '8.x'
1010

11-
- script: |
12-
npm install
13-
npm test
11+
- task: Npm@1
12+
inputs:
13+
command: install
14+
15+
- task: Npm@1
16+
inputs:
17+
command: test
1418

1519
- task: PublishTestResults@2
1620
inputs:

0 commit comments

Comments
 (0)