@@ -4,8 +4,10 @@ trigger:
4
4
- releases/*
5
5
6
6
variables :
7
- nodeVersion : 10.23.0
8
-
7
+ - group : npm-tokens
8
+ - name : nodeVersion
9
+ value : ' 10.23.0'
10
+
9
11
jobs :
10
12
# ################################################
11
13
- job : windows
@@ -15,44 +17,11 @@ jobs:
15
17
vmImage : windows-2019
16
18
17
19
steps :
18
- # ###############################################################################
19
- # azure-pipelines-task-lib
20
- # ###############################################################################
21
-
22
20
- template : azure-pipelines-steps-node.yml
23
21
parameters :
24
22
nodeVersion : $(nodeVersion)
25
-
26
- # test
27
- - script : |
28
- chcp 437
29
- node make.js test
30
- workingDirectory: node
31
- displayName: (azure-pipelines-task-lib) node make.js test
32
-
33
- # build
34
- - script : |
35
- chcp 437
36
- node make.js build
37
- displayName: (azure-pipelines-task-lib) node make.js build
38
- workingDirectory: node
39
-
40
- # ###############################################################################
41
- # VstsTaskSdk
42
- # ###############################################################################
43
-
44
- # npm install
45
- - task : Npm@1
46
- displayName : (VstsTaskSdk) npm install
47
- inputs :
48
- command : install
49
- workingDir : powershell
50
-
51
- # npm test
52
- - script : npm test
53
- displayName : (VstsTaskSdk) npm test
54
- workingDirectory : powershell
55
-
23
+ - template : azure-pipelines-steps-test-build.yml
24
+
56
25
# ################################################
57
26
- job : linux
58
27
# ################################################
@@ -74,14 +43,13 @@ jobs:
74
43
75
44
# For CI runs on master, automatically publish packages
76
45
- bash : |
77
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
78
- cd _build
46
+ echo //registry.npmjs.org/:_authToken=\${NPM_TOKEN} > .npmrc
79
47
npm publish || true # Ignore publish failures, usually will happen because package already exists
80
- displayName: (azure-pipelines-task-lib) npm publish
81
- workingDirectory: node
82
- condition: and(succeeded(), in(variables['build.reason'], 'IndividualCI', 'BatchedCI', 'Manual'), in(variables['build.sourcebranchname '], 'master', 'releases/3.x '))
48
+ displayName: npm publish
49
+ workingDirectory: node/_build
50
+ condition: and(succeeded(), in(variables['build.reason'], 'IndividualCI', 'BatchedCI', 'Manual'), in(variables['build.sourcebranch '], 'refs/heads/master '))
83
51
env:
84
- NPM_TOKEN: $(npmPublishToken )
52
+ NPM_TOKEN: $(npm-automation.token )
85
53
86
54
# ################################################
87
55
- job : macOS
94
62
- template : azure-pipelines-steps-node.yml
95
63
parameters :
96
64
nodeVersion : $(nodeVersion)
97
- - template : azure-pipelines-steps-test-build.yml
65
+ - template : azure-pipelines-steps-test-build.yml
0 commit comments