@@ -11,7 +11,7 @@ resources:
1111 ref : refs/tags/release
1212
1313extends :
14- template : v1/1ES.Official .PipelineTemplate.yml@1esPipelines
14+ template : v1/1ES.Unofficial .PipelineTemplate.yml@1esPipelines
1515 parameters :
1616 sdl :
1717 sourceAnalysisPool : 1es-oss-windows-2022-x64
@@ -24,97 +24,49 @@ extends:
2424 pool :
2525 name : 1es-oss-ubuntu-22.04-x64
2626 os : Linux
27- strategy :
28- matrix :
29- node_20_x :
30- node_version : 20.x
3127 steps :
3228 - task : NodeTool@0
3329 inputs :
34- versionSpec : $(node_version)
30+ versionSpec : 20.x
3531 displayName : ' Install Node.js'
36- - script : |
37- npm i
32+ - script : npm ci
3833 displayName : ' Install dependencies and build'
39- - script : |
40- npm test
34+ - script : npm test
4135 displayName : ' Test'
42- - script : |
43- npm run lint
36+ - script : npm run lint
4437 displayName : ' Lint'
4538
4639 - job : macOS
4740 pool :
4841 name : Azure Pipelines
49- vmImage : ' macOS-latest '
42+ vmImage : ' macOS-14 '
5043 os : macOS
51- strategy :
52- matrix :
53- node_20_x :
54- node_version : 20.x
5544 steps :
5645 - task : NodeTool@0
5746 inputs :
58- versionSpec : $(node_version)
47+ versionSpec : 20.x
5948 displayName : ' Install Node.js'
60- - script : |
61- python3 -m pip install setuptools
49+ - script : python3 -m pip install setuptools
6250 displayName : Install setuptools (macOS)
63- - script : |
64- npm i
51+ - script : npm ci
6552 displayName : ' Install dependencies and build'
66- - script : |
67- npm test
53+ - script : npm test
6854 displayName : ' Test'
69- - script : |
70- npm run lint
55+ - script : npm run lint
7156 displayName : ' Lint'
7257
7358 - job : Windows
7459 pool :
7560 name : 1es-oss-windows-2022-x64
7661 os : Windows
77- strategy :
78- matrix :
79- node_20_x :
80- node_version : 20.x
8162 steps :
8263 - task : NodeTool@0
8364 inputs :
84- versionSpec : $(node_version)
65+ versionSpec : 20.x
8566 displayName : ' Install Node.js'
86- - script : |
87- npm i
67+ - script : npm ci
8868 displayName : ' Install dependencies and build'
89- - script : |
90- npm test
69+ - script : npm test
9170 displayName : ' Test'
92- - script : |
93- npm run lint
71+ - script : npm run lint
9472 displayName : ' Lint'
95-
96- - stage : Release
97- dependsOn : Build
98- jobs :
99- - job : Release
100- condition : eq(variables['Build.SourceBranch'], 'refs/heads/main')
101- # Output artifact to produce SBOM and to run SDL checks
102- templateContext :
103- outputs :
104- - output : pipelineArtifact
105- targetPath : $(Build.SourcesDirectory)
106- artifactName : drop
107- pool :
108- name : 1es-oss-ubuntu-22.04-x64
109- os : Linux
110- steps :
111- - task : NodeTool@0
112- inputs :
113- versionSpec : ' 20.x'
114- displayName : ' Install Node.js'
115- - script : |
116- npm i
117- displayName: 'Install dependencies and build'
118- - script : |
119- NPM_AUTH_TOKEN="$(NPM_AUTH_TOKEN)" node ./scripts/publish.js
120- displayName: 'Publish to npm'
0 commit comments