Skip to content

Commit

Permalink
Fix missing publish tag for non-bazel packages (#8044)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsoulanille authored Oct 31, 2023
1 parent a6a1005 commit 18c4224
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/publish-npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,15 @@ async function publish(pkg: string, registry: string, otp?: string,
await retry(() =>
run(`${login}yarn --registry '${registry}' publish-npm ${dashes} ${otpFlag} --tag=${tag} --force`));
} else {
// Publish the package to the registry.
await retry(() =>
run(`${login}npm --registry '${registry}' publish ${otpFlag}`));

// Special case for tfjs-node(-gpu), which must upload the node addon
// to GCP as well. Only do this when publishing to NPM.
if (registry === NPM_REGISTRY && pkg.startsWith('tfjs-node')) {
$('yarn build-and-upload-addon publish');
}

// Publish the package to the registry.
await retry(() =>
run(`${login}npm --registry '${registry}' publish --tag=${tag} ${otpFlag}`));
}
console.log(`Published ${pkg} to ${registry}.`);

Expand Down

0 comments on commit 18c4224

Please sign in to comment.