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(