$ cnpm install @cypress/releaser
This module is used interally to help release and manage Cypress modules.
npm install --save-dev @cypress/releaser
## use from the command line
releaser
## dont actually push or tag
releaser --dry-run
## bypass creating .node-version file
releaser --no-node
## bypass checking for uncommitted changes
releaser --no-clean
## bypass prompting or committing a changelog
releaser --no-changelog
## bypass requiring master branch
releaser --branch=<your branch>
You should probably add this to your package.json scripts
// package.json
{
"scripts": {
"release": "releaser"
}
}
Now you can run:
npm run release
If you want to pass arguments to release
make sure you use double dashes.
## use double dashes when running from 'scripts'
npm run release -- --no-clean --dry-run
Copyright 2014 - 2017 © taobao.org |