Publishes a package to the registry.
pnpm publish public|restricted>][--tag <tag>] [--access <
When publishing a package inside a workspace, the LICENSE file from the root of the workspace is packed with the package (unless the package has a license of its own).
Publishes the package with the given tag. By default,
pnpm publish updates the
# inside the foo package directory pnpm publish --tag next # in a project where you want to use the next version of foo pnpm add foo@next
Tells the registry whether the published package should be public or restricted.