From 0709a1bf785a2df398eff85f38fcace85fd0e49d Mon Sep 17 00:00:00 2001 From: Harshavardhan Date: Mon, 5 Jan 2026 10:56:45 +0530 Subject: [PATCH] bun-publish: add page (#20540) * bun-publish: add page * Apply suggestion from @emmanuel-ferdman Co-authored-by: Emmanuel Ferdman * Apply suggestion from @emmanuel-ferdman Co-authored-by: Emmanuel Ferdman * Apply suggestion from @emmanuel-ferdman Co-authored-by: Emmanuel Ferdman * chore: example --------- Co-authored-by: Emmanuel Ferdman --- pages/common/bun-publish.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pages/common/bun-publish.md diff --git a/pages/common/bun-publish.md b/pages/common/bun-publish.md new file mode 100644 index 0000000000..eb6afc77e7 --- /dev/null +++ b/pages/common/bun-publish.md @@ -0,0 +1,36 @@ +# bun publish + +> Publish a package to the npm registry. +> More information: . + +- Publish the current package to the npm registry: + +`bun publish` + +- Publish a package from a specific directory: + +`bun publish {{path/to/package_directory}}` + +- Publish a scoped package with specific access level: + +`bun publish --access {{public|restricted}}` + +- Publish a package to a custom registry: + +`bun publish --registry {{registry}}` + +- Run a dry run to see what would be published without uploading: + +`bun publish --dry-run` + +- Publish a package with a specific distribution tag: + +`bun publish --tag {{tag_name}}` + +- Publish with a one-time password for 2FA-enabled accounts: + +`bun publish --otp {{one_time_password}}` + +- Publish using a specific authentication type: + +`bun publish --auth-type {{web|legacy}}`