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 themainbranch before a deployment
Deployment allowed only from amainbranch!
Deployment
To deploy a package run next commands from a command line:
-
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
-
yarn release:build
This command will build packages -
npm login
Login into your npm account -
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