From 95f2a3e7e0adfdd858333313ea29d8b3eb1e5271 Mon Sep 17 00:00:00 2001 From: Yulong Wang <7679871+fs-eire@users.noreply.github.com> Date: Fri, 12 Aug 2022 15:46:36 -0700 Subject: [PATCH] [js/web] update branch name for pull:wasm (#12548) * [js/web] update branch name for pull:wasm * revise message --- js/README.md | 2 +- js/web/script/pull-prebuilt-wasm-artifacts.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/README.md b/js/README.md index c4ab0bc431..d5b55af6e1 100644 --- a/js/README.md +++ b/js/README.md @@ -161,7 +161,7 @@ This project is a library for running ONNX models on browsers. It is the success - Setup by script. - In `/js/web/`, run `npm run pull:wasm` to pull WebAssembly artifacts for latest master branch from CI pipeline. + In `/js/web/`, run `npm run pull:wasm` to pull WebAssembly artifacts for latest main branch from CI pipeline. - Download artifacts from pipeline manually. diff --git a/js/web/script/pull-prebuilt-wasm-artifacts.ts b/js/web/script/pull-prebuilt-wasm-artifacts.ts index f0e5c441a1..6648b7281d 100644 --- a/js/web/script/pull-prebuilt-wasm-artifacts.ts +++ b/js/web/script/pull-prebuilt-wasm-artifacts.ts @@ -8,7 +8,7 @@ // WebAssembly side, so there is no need to rebuild WebAssembly. // // It performs the following operations: -// 1. query build ID for latest successful build on master branch +// 1. query build ID for latest successful build on main branch // 2. query download URL of build artifacts // 3. download and unzip the files to folders // @@ -80,11 +80,11 @@ downloadJson( '&$top=1' + '&repositoryId=Microsoft/onnxruntime' + '&repositoryType=GitHub' + - '&branchName=refs/heads/master', + '&branchName=refs/heads/main', data => { const buildId = data.value[0].id; - console.log(`=== Found latest master build : ${buildId} ===`); + console.log(`=== Found latest build on main branch: ${buildId} ===`); // API reference: https://docs.microsoft.com/en-us/rest/api/azure/devops/build/artifacts/get%20artifact downloadJson(