rapid-release v1.0.13
Rapid Release
Rapid Release is a tool to help automate the required steps to create a new release of your app.
Usage
npx rapid-release VERSIONVERSION can be any of major, minor, patch, premajor, preminor, prepatch, prerelease, 1.2.3 (uses npm version)
It makes a few assumptions about the project, so be sure those things are true with your project.
The main goal is to marge the develop branch into master, push everything and add the required tags. The main assumption is that you follow gitflow and you have a develop (or any branch name that contains the string dev) that you want to merge into master and release.
It also assumes that you want master and develop branch to have the exact same commits after the release is done, which is a good practise.
Actions
Following are the actions that Rapid Release executes, in the order those are executed.
- Check if the current branch has the string
devin it's name npm testrun tests or skip them using flag-sgit pullmake sure we have all changesnpm version VERSIONVERSION is the version you specifiedgit pushpush the new commit that npm createdgit push --follow-tagspush the tag that npm createdgit checkout mastergo tomasterbranchgit pullmake sure we have latest codegit merge DEV_BRANCHmerge the branch we started in, tomastergit pushpush the new release codenpm publishonly if you used the-pflaggit checkout DEV_BRANCHgo back to the branch we started at
Available flags
-s or --skip-tests to skip running the tests (npm test)-p or --npm-publish to publish on npm (npm publish)