- Test the publishing process locally.
- Test the installation process locally.
To be able to use the local registry, you need:
- Run the local registry server
npx verdaccio
That will output:
info --- config file - /Users/xepozz/.config/verdaccio/config.yaml
info --- "crypt" algorithm is deprecated consider switch to "bcrypt". Read more: https://github.com/verdaccio/monorepo/pull/580
info --- plugin successfully loaded: verdaccio-htpasswd
info --- plugin successfully loaded: verdaccio-audit
warn --- http address - http://localhost:4873/ - verdaccio/5.23.2
- Add the local registry to your
~/.npmrc
file:
registry=http://localhost:4873/ <-- the url from the previous step
- Run
npm adduser
and done this step. - Run
npm publish
in the root of the package you want to publish or usenpm publish -ws
to publish all packages in the monorepo.