@monorepo-utils/publish

Publish packages to npm if needed.

Stats

StarsIssuesVersionUpdatedCreatedSize
@monorepo-utils/publish
2.1.0a year ago3 years agoMinified + gzip package size for @monorepo-utils/publish in KB

Readme

@monorepo-utils/publish

Publish packages to npm if needed.

Install

 npm install --save-dev @monorepo-utils/publish

Usage

Usage
  $ monorepo-utils-publish

Options:
  --dry Enable dry run mode
  --yes Yes all
  --ci  CI mode includes --yes flag
  --dist-tag dist-tag for npm

Examples
  # publish 
  $ monorepo-utils-publish --dry
  # publish with --tag
  # https://docs.npmjs.com/cli/publish
  $ monorepo-utils-publish --dist-tag next
  
  # dry-run mode
  $ monorepo-utils-publish --dry
  # manually publish
  # CI mode
  $ monorepo-utils-publish --ci

Publish

Publish packages that are publish-able.

can-npm-publish detect publish-able of the package.

Dry-run:

Test publishing with --dry

$ monorepo-utils-publish --dry

Actual publishing:

$ monorepo-utils-publish 

CI flag skip interactive mode.

$ monorepo-utils-publish --ci

UseCase

You can use this script for splitting tagging and publishing.

For example, @lerna/publish does tag and publish together. You want to split that process into two phase.

  1. Tagging(update version and git tag)
$ lerna publish --skip-npm --conventional-commits
  1. Publishing
monorepo-utils-publish

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.