Skip to content
/ peta Public

📦 [npm] Publish npm package in beta tag with version number automatically increased.

License

Notifications You must be signed in to change notification settings

int64ago/peta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

peta = publish-beta

Publish npm package in beta tag with version number automatically increased.

NPM version Downloads

Usage

  • npm i peta -g
  • In the root directory of project, run peta

How

The published version is based on three versions:

  • onlineLatest - max version in latest tag
  • onlineBeta - max version in beta tag
  • local - read from package.json

Then, we get version from max(onlineBeta || onlineLatest, local)

At last, we publish semver.inc(version, 'prerelease', 'beta') with beta tag

For API infomation of semver: semver

LICENSE

MIT

About

📦 [npm] Publish npm package in beta tag with version number automatically increased.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published