Versioning and Publish Component

Component Versioning is controlled by Verdaccio, which is a private package manager for the Node. In the repository you have the components published with all versions.

To check which package manager the npm is using run the command below.

$ nrm ls

If the correct repository is not selected, use the command:

$ nrm use repo-name

To publish a version of a component the NPM registry must be pointing to Verdaccio, as shown above. Component version control that will be published in Verdaccio is made in the version attribute of the package.json file, and the name attribute is the name of the component to be published.

Before publishing the version it is mandatory to log in to the repository, with Verdaccio user, email and password.

$ npm login

After logging in, build the application and publish with the command below, execute the build and then publish the component.

$ npm run build all