Easily publish new versions and push.
because changelog use conventional-changelog so please install conventional-changelog:
npm i --save-dev conventional-changelognpm i --save-dev easy-release
Add an npm run script to your package.json:
{
"scripts": {
"release": "easy-release"
}
}-
--dry:- describe: skip
git addgit commitnpm publishgit taggit tag pushgit push - type:
boolean - default:
false - example:
easy-release --dry
- describe: skip
-
--pre:- describe: example
betaalpha... - type:
string - default:
'' - example:
easy-release --pre=beta
- describe: example
-
--sb:- describe: skip build
- type:
boolean - default:
false - example:
easy-release --sb
-
--sc:- describe: skip changelog
- type:
boolean - default:
false - example:
easy-release --sc
-
--sp:- describe: skip publish
- type:
boolean - default:
false - example:
easy-release --sp
-
tag:- describe: npm publish --tag xxx
- type:
string - default:
''if--prevalue - example:
easy-release --tag=beta
modeled after the vue release. thank vue