A script that can be used to automatically publish packages to npm.

Usage no npm install needed!

<script type="module">
  import brightlayerUiPublish from 'https://cdn.skypack.dev/@brightlayer-ui/publish';



This Command Line tool is a utility for automatically publishing NPM packages based on the version number in the package.json file.


In order to use this utility you must have the following installed:


You can use this package without installing any global or local dependencies by running it with npx (recommended):

npx -p @brightlayer-ui/publish blui-publish -b <branch-name>

Available options

The following table list out some options for the blui-publish command. All these options can be configured:

Option Description
-b (default: dev) The branch you are on.

The branch flag is used to determine whether a latest package can be published. Latest packages may only be published for the master branch (-b master).