Skip to content

Commit 18c4224

Browse files
Fix missing publish tag for non-bazel packages (#8044)
1 parent a6a1005 commit 18c4224

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/publish-npm.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,15 +203,15 @@ async function publish(pkg: string, registry: string, otp?: string,
203203
await retry(() =>
204204
run(`${login}yarn --registry '${registry}' publish-npm ${dashes} ${otpFlag} --tag=${tag} --force`));
205205
} else {
206-
// Publish the package to the registry.
207-
await retry(() =>
208-
run(`${login}npm --registry '${registry}' publish ${otpFlag}`));
209-
210206
// Special case for tfjs-node(-gpu), which must upload the node addon
211207
// to GCP as well. Only do this when publishing to NPM.
212208
if (registry === NPM_REGISTRY && pkg.startsWith('tfjs-node')) {
213209
$('yarn build-and-upload-addon publish');
214210
}
211+
212+
// Publish the package to the registry.
213+
await retry(() =>
214+
run(`${login}npm --registry '${registry}' publish --tag=${tag} ${otpFlag}`));
215215
}
216216
console.log(`Published ${pkg} to ${registry}.`);
217217

0 commit comments

Comments
 (0)