Git Product home page Git Product logo

rapid-release's Introduction

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 VERSION

VERSION 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 dev in it's name
  • npm test run tests or skip them using flag -s
  • git pull make sure we have all changes
  • npm version VERSION VERSION is the version you specified
  • git push push the new commit that npm created
  • git push --follow-tags push the tag that npm created
  • git checkout master go to master branch
  • git pull make sure we have latest code
  • git merge DEV_BRANCH merge the branch we started in, to master
  • git push push the new release code
  • npm publish only if you used the -p flag
  • git checkout DEV_BRANCH go 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)

rapid-release's People

Contributors

knorcedger avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.