Skip to content

Package deployment to the npmjs.com

This documentation describes how to deploy a package to the npmjs.com

Important!
Always make sure that you are on the main branch before a deployment
Deployment allowed only from a main branch!

Deployment

To deploy a package run next commands from a command line:

  1. yarn release:version
    This command will allow you to set a new version of the package which you want to deploy
    Please set the version which you need

    Release version
  2. yarn release:build
    This command will build packages

  3. npm login
    Login into your npm account

  4. yarn release:publish
    This command will deploy a package to the npmjs.com

After deployment

You will need to commit a modified package.json file

Give a next message to this commit:
Publish @empeek-rnd-ui/<package_name>@<version>

Where:
<package_name> - your current package name
<version> - your current new package version

The commit message should look like this:  "Publish @empeek-rnd-ui/hooks@0.1.0"

After committing, push current commit to the github repo

Result

Your package should be available on the npmjs.com
https://www.npmjs.com/settings/empeek-rnd-ui/packages