Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

npm-version: add beta suffix to version #21183

Open
damianobarbati opened this issue Jul 10, 2018 · 1 comment
Open

npm-version: add beta suffix to version #21183

damianobarbati opened this issue Jul 10, 2018 · 1 comment

Comments

@damianobarbati
Copy link

Would it be possible to add flags through npm version patch|minor|major?

I.E:

$ cat package.json | grep version
"version": "v1.0.5",
$ npm version patch --suffix beta
v1.0.6-beta.1 # patch and beta is incremented
$ npm version patch --suffix beta
v1.0.6-beta.2 # beta is incremented

Currently we have just npm dist which add the beta flag when publishing to npm but it doesn't properly update version in package.json

Any idea?

@DanielRuf
Copy link

Probably just with some helper module.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants