Easily publish new versions and push.
because changelog use conventional-changelog
so please install conventional-changelog
:
npm i --save-dev conventional-changelog
npm i --save-dev easy-release
Add an npm run
script to your package.json
:
{
"scripts": {
"release": "easy-release"
}
}
-
--dry
:- describe: skip
git add
git commit
npm publish
git tag
git tag push
git push
- type:
boolean
- default:
false
- example:
easy-release --dry
- describe: skip
-
--pre
:- describe: example
beta
alpha
... - 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--pre
value - example:
easy-release --tag=beta
modeled after the vue release. thank vue