Publishes a package to the npm registry.
Once a package is published, you can never modify that specific version, so take care before publishing.
Publishes the package defined by the
package.json in the current directory.
Publishes the package defined by a
.tgz gzipped tarball.
Publishes the package contained in the specified folder.
<folder>/package.json should specify the package details.
Provided a tag to
yarn publish lets you publish packages with a specific tag. For example, if you do a
yarn publish --tag beta, and your package is named
blorp, then someone else can install that package with
yarn add blorp@beta.
--access flag controls whether the npm registry publishes this package as a public package, or restricted.