diff --git a/tools/ci_build/github/azure-pipelines/npm-packaging-pipeline.yml b/tools/ci_build/github/azure-pipelines/npm-packaging-pipeline.yml index 2e7ac9508a41e..588b5d049ee3c 100644 --- a/tools/ci_build/github/azure-pipelines/npm-packaging-pipeline.yml +++ b/tools/ci_build/github/azure-pipelines/npm-packaging-pipeline.yml @@ -9,11 +9,6 @@ parameters: - 'custom' default: 'nightly (@dev)' -- name: NodePipelineId - displayName: 'Node npm package build Id' - type: string - default: 'latest' - variables: # pipeline should define the following varaibles # ExtraBuildArgs @@ -29,6 +24,11 @@ variables: NpmPackagingMode: '$(VersionSuffix)' resources: + pipelines: + - pipeline: build + source: 'Zip-Nuget-Java-Nodejs Packaging Pipeline' + trigger: true + branch: main repositories: - repository: manylinux type: Github @@ -65,35 +65,13 @@ stages: runCodesignValidationInjection: false timeoutInMinutes: 10 steps: - - - ${{ if eq(parameters.NodePipelineId, 'latest') }}: - - task: DownloadPipelineArtifact@2 - inputs: - buildType: 'specific' - project: '530acbc4-21bc-487d-8cd8-348ff451d2ff' - definition: '940' - specificBuildWithTriggering: true - buildVersionToDownload: 'latestFromBranch' - branchName: 'refs/heads/main' - artifactName: 'NPM_packages' - targetPath: '$(Pipeline.Workspace)' - displayName: 'Download onnxruntime-node Pipeline Artifact' - - - ${{ if ne(parameters.NodePipelineId, 'latest') }}: - - task: DownloadPipelineArtifact@2 - inputs: - buildType: 'specific' - project: '530acbc4-21bc-487d-8cd8-348ff451d2ff' - definition: '940' - buildVersionToDownload: 'specific' - pipelineId: '${{ parameters.NodePipelineId }}' - artifactName: 'NPM_packages' - targetPath: '$(Pipeline.Workspace)' - displayName: 'Download onnxruntime-node Pipeline Artifact' + - download: build + artifact: 'NPM_packages' + displayName: 'Download onnxruntime-node Pipeline Artifact' - task: CopyFiles@2 inputs: - sourceFolder: $(Pipeline.Workspace) + sourceFolder: '$(Pipeline.Workspace)\build\NPM_packages' contents: onnxruntime-*.tgz targetFolder: $(Build.ArtifactStagingDirectory)\node-artifacts displayName: 'Copy onnxruntime-node Artifacts'