@@ -32,7 +32,7 @@ parameters:
3232 versionSpec : ' 22.21.1'
3333 displayName : Select Node version
3434
35- - script : npm ci
35+ - script : npm install
3636 workingDirectory : $(Build.SourcesDirectory)/pythonEnvironmentsApi
3737 displayName : Install package dependencies
3838
@@ -68,7 +68,8 @@ extends:
6868 enabled : true
6969 pool :
7070 name : AzurePipelines-EO
71- os : windows
71+ image : 1ESPT-Ubuntu22.04
72+ os : linux
7273
7374 customBuildTags :
7475 - ES365AIMigrationTooling
@@ -79,6 +80,11 @@ extends:
7980 jobs :
8081 - job : BuildPackage
8182 displayName : Build npm package
83+ templateContext :
84+ outputs :
85+ - output : pipelineArtifact
86+ targetPath : $(Build.ArtifactStagingDirectory)
87+ artifactName : npm-package
8288 steps :
8389 - ${{ each step in parameters.buildSteps }} :
8490 - ${{ step }}
@@ -90,12 +96,6 @@ extends:
9096 contents : ' *.tgz'
9197 targetFolder : $(Build.ArtifactStagingDirectory)
9298
93- - task : 1ES.PublishBuildArtifacts@1
94- displayName : Publish build artifact
95- inputs :
96- pathToPublish : $(Build.ArtifactStagingDirectory)
97- artifactName : npm-package
98-
9999 - stage : Publish
100100 displayName : Publish to npm
101101 dependsOn : Build
@@ -104,13 +104,11 @@ extends:
104104 - job : PublishPackage
105105 displayName : Publish $(PackageName)
106106 steps :
107- - task : DownloadBuildArtifacts@1
107+ - task : DownloadPipelineArtifact@2
108108 displayName : Download build artifact
109109 inputs :
110- buildType : current
111- downloadType : single
112110 artifactName : npm-package
113- downloadPath : $(Build.ArtifactStagingDirectory)
111+ targetPath : $(Build.ArtifactStagingDirectory)/npm-package
114112
115113 - task : NodeTool@0
116114 inputs :
@@ -121,7 +119,7 @@ extends:
121119 workingDirectory : $(Build.SourcesDirectory)/pythonEnvironmentsApi
122120 displayName : Configure npm auth
123121
124- - bash : npm publish $(Build.ArtifactStagingDirectory)/npm-package/*.tgz --tag $(npmTag) --access public
122+ - bash : npm publish $(Build.ArtifactStagingDirectory)/npm-package/*.tgz --tag $(npmTag) --access public --ignore-scripts
125123 displayName : Publish to npm (${{ parameters.quality }})
126124 workingDirectory : $(Build.SourcesDirectory)/pythonEnvironmentsApi
127125 env :
0 commit comments