Skip to content

Commit 00d544f

Browse files
1ES Migration (#589)
* 1ES Migration - Move publishing to npm task - Migrate the pipeline to another pool and org * 1ES Migration - Comment publishing to test new task * 1ES Migration - Restore publish only from master
1 parent a31bfae commit 00d544f

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

azure-pipelines.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ extends:
1010
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
1111
parameters:
1212
sdl:
13+
sbom:
14+
enabled: false
1315
sourceAnalysisPool:
14-
name: Azure-Pipelines-1ESPT-ExDShared
15-
image: windows-2022
16+
name: 1ES-ABTT-Shared-Pool
17+
image: abtt-windows-2022
1618
os: windows
1719
pool:
18-
name: Azure-Pipelines-1ESPT-ExDShared
19-
image: ubuntu-latest
20+
name: 1ES-ABTT-Shared-Pool
21+
image: abtt-ubuntu-2204
2022
os: linux
2123
customBuildTags:
2224
- ES365AIMigrationTooling
@@ -57,11 +59,12 @@ extends:
5759
displayName: npm run build
5860
- script: npm run units
5961
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
62+
- task: Npm@1
63+
displayName: Publish azure-devops-node-api to npm
6564
condition: and(succeeded(), in(variables['build.reason'], 'IndividualCI', 'BatchedCI', 'Manual'), eq(variables['build.sourcebranchname'], 'master'))
66-
env:
67-
NPM_TOKEN: $(npmPublishToken)
65+
inputs:
66+
command: publish
67+
workingDir: '_build'
68+
publishRegistry: useExternalRegistry
69+
publishEndpoint: btt-npm-publish-token
70+
continueOnError: true

0 commit comments

Comments
 (0)