1
- pool :
2
- vmImage : ubuntu-20.04
3
-
4
- strategy :
5
- matrix :
6
- ' Node 6 ' :
7
- versionSpec : ' 6.x'
8
- npmVersion : ' 5'
9
- ' Node 8 ' :
10
- versionSpec : ' 8.x'
11
- npmVersion : ' 6'
12
- ' Node 10 ' :
13
- versionSpec : ' 10.x'
14
- npmVersion : ' 6'
15
- ' Node 12 ' :
16
- versionSpec : ' 12.x'
17
- npmVersion : ' 6'
18
- ' Node 14 ' :
19
- versionSpec : ' 14.x'
20
- npmVersion : ' 6'
21
- ' Node 16 ' :
22
- versionSpec : ' 16.x'
23
- npmVersion : ' 8'
24
-
25
- steps :
26
- - task : NodeTool@0
27
- inputs :
28
- versionSpec : $(versionSpec)
29
- displayName : Install node
30
-
31
- - script : npm install -g npm@$(npmVersion)
32
- displayName : Upgrade npm
33
-
34
- # install dependencies
35
- - script : npm install
36
- displayName : npm install
37
-
38
- # build
39
- - script : npm run build
40
- displayName : npm run build
41
-
42
- - script : npm run units
43
- displayName : Run unit tests
44
-
45
- # For CI runs on master, automatically publish packages
46
- - bash : |
47
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
48
- cd _build
49
- npm publish || true # Ignore publish failures, usually will happen because package already exists
50
- displayName : npm publish
51
- condition : and(succeeded(), in(variables['build.reason'], 'IndividualCI', 'BatchedCI', 'Manual'), eq(variables['build.sourcebranchname'], 'master'))
52
- env :
53
- NPM_TOKEN : $(npmPublishToken)
1
+ # This Yaml Document has been converted by ESAI Yaml Pipeline Conversion Tool.
2
+ # This pipeline will be extended to the OneESPT template
3
+ resources :
4
+ repositories :
5
+ - repository : 1ESPipelineTemplates
6
+ type : git
7
+ name : 1ESPipelineTemplates/1ESPipelineTemplates
8
+ ref : refs/tags/release
9
+ extends :
10
+ template : v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
11
+ parameters :
12
+ sdl :
13
+ sourceAnalysisPool :
14
+ name : Azure-Pipelines-1ESPT-ExDShared
15
+ image : windows-2022
16
+ os : windows
17
+ pool :
18
+ name : Azure-Pipelines-1ESPT-ExDShared
19
+ image : ubuntu-latest
20
+ os : linux
21
+ customBuildTags :
22
+ - ES365AIMigrationTooling
23
+ stages :
24
+ - stage : stage
25
+ jobs :
26
+ - job : job
27
+ strategy :
28
+ matrix :
29
+ ' Node 6 ' :
30
+ versionSpec : ' 6.x'
31
+ npmVersion : ' 5'
32
+ ' Node 8 ' :
33
+ versionSpec : ' 8.x'
34
+ npmVersion : ' 6'
35
+ ' Node 10 ' :
36
+ versionSpec : ' 10.x'
37
+ npmVersion : ' 6'
38
+ ' Node 12 ' :
39
+ versionSpec : ' 12.x'
40
+ npmVersion : ' 6'
41
+ ' Node 14 ' :
42
+ versionSpec : ' 14.x'
43
+ npmVersion : ' 6'
44
+ ' Node 16 ' :
45
+ versionSpec : ' 16.x'
46
+ npmVersion : ' 8'
47
+ steps :
48
+ - task : NodeTool@0
49
+ inputs :
50
+ versionSpec : $(versionSpec)
51
+ displayName : Install node
52
+ - script : npm install -g npm@$(npmVersion)
53
+ displayName : Upgrade npm
54
+ - script : npm install
55
+ displayName : npm install
56
+ - script : npm run build
57
+ displayName : npm run build
58
+ - script : npm run units
59
+ displayName : Run unit tests
60
+ - bash : |
61
+ echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
62
+ cd _build
63
+ npm publish || true # Ignore publish failures, usually will happen because package already exists
64
+ displayName: npm publish
65
+ condition: and(succeeded(), in(variables['build.reason'], 'IndividualCI', 'BatchedCI', 'Manual'), eq(variables['build.sourcebranchname'], 'master'))
66
+ env:
67
+ NPM_TOKEN: $(npmPublishToken)
0 commit comments