Skip to content

Commit 33d562a

Browse files
Test
1 parent d628aec commit 33d562a

File tree

3 files changed

+21
-12
lines changed

3 files changed

+21
-12
lines changed

azure-pipelines-steps-node.yml

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

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

19-
- script: npm test
20-
workingDirectory: node
22+
- task: Npm@1
23+
inputs:
24+
command: custom
25+
customCommand: test
26+
customRegistry: useNpmrc
27+
workingDir: node
2128
displayName: (task-lib) npm test
2229

2330
# Only on Linux. For CI runs on master, automatically publish packages
2431
- ${{ 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
32+
- task: Npm@1
33+
inputs:
34+
command: publish
35+
verbose: true
36+
customRegistry: useNpmrc
37+
workingDir: node/_build
38+
publishRegistry: 'useFeed'
39+
publishFeed: 'c86767d8-af79-4303-a7e6-21da0ba435e2/2442ccb9-e127-4ec5-99e5-28dd29f92057'
2940
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'))
3241

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

node/package-lock.json

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

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)