Skip to content

Commit fdf4a35

Browse files
Test
1 parent d628aec commit fdf4a35

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

Diff for: azure-pipelines-steps-node.yml

+16-10
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,29 @@ steps:
1212
inputs:
1313
workingFile: .npmrc
1414

15-
- script: npm ci
15+
- task: Npm@1
16+
inputs:
17+
command: ci
18+
customRegistry: useNpmrc
1619
displayName: (task-lib) npm ci
17-
workingDirectory: node
1820

19-
- script: npm test
20-
workingDirectory: node
21+
- task: Npm@1
22+
inputs:
23+
command: test
24+
customRegistry: useNpmrc
2125
displayName: (task-lib) npm test
2226

2327
# Only on Linux. For CI runs on master, automatically publish packages
2428
- ${{ if eq(parameters.os, 'Linux') }}:
25-
- bash: |
26-
cp -f ../.npmrc .npmrc
27-
npm publish || true # Ignore publish failures, usually will happen because package already exists
28-
rm -f .npmrc
29+
- task: Npm@1
30+
inputs:
31+
command: publish
32+
verbose: true
33+
customRegistry: useNpmrc
34+
workingDir: node/_build
35+
publishRegistry: 'useFeed'
36+
publishFeed: 'c86767d8-af79-4303-a7e6-21da0ba435e2/2442ccb9-e127-4ec5-99e5-28dd29f92057'
2937
displayName: (task-lib) Publish the package to Azure DevOps Feed
30-
workingDirectory: node/_build
31-
condition: and(succeeded(), in(variables['build.reason'], 'IndividualCI', 'BatchedCI', 'Manual'), in(variables['build.sourcebranch'], 'refs/heads/master'))
3238

3339
- bash: |
3440
echo //registry.npmjs.org/:_authToken=\${NPM_TOKEN} > .npmrc

Diff for: node/package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: node/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "azure-pipelines-task-lib",
3-
"version": "4.17.3",
3+
"version": "0.999.999",
44
"description": "Azure Pipelines Task SDK",
55
"main": "./task.js",
66
"typings": "./task.d.ts",

0 commit comments

Comments
 (0)