Git Product home page Git Product logo

auto-release's Introduction

Let's stop delayed releases...

Finally, most of my projects including Karma and all its plugins are released automatically. I though it might be helpful for others, so I’m gonna try to describe the process here.

I think it would be neat if somebody made it more generic and created a service for it...

Each project uses grunt-auto-release, which does:

  • fetch the latest changes from given remote repository (upstream by default)
  • check for new changes (that is either feat/fix, style/tests/chore commits are ignored)
  • check Travis build
  • run grunt release task (assuming there are some new changes and Travis build succeeded)

Each project defines grunt release task, which typically does:

  • bump the version
  • generate the changelog
  • update the list of contributors
  • create tag
  • push to upstream
  • push to NPM

See Karma’s Gruntfile for an example. It uses grunt-conventional-changelog, grunt-bump, grunt-npm plugins.

The rest is kind of dirty shell script, that basically goes through all the projects and calls grunt auto-release. It also buffers outputs and send me an email afterwards.

The whole thing is run as a cron job:

# crontab -e
# run each Sunday/Wednesday at midnight
5 23 * * 0,3 /home/vojta/auto-release/cron.sh >> /var/tmp/auto-release.cron

You can also run it on Mac:

launchctl load org.vojta-auto-release.plist

Note: this workflow is based on the git commit message convention.

auto-release's People

Contributors

vojtajina avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

piaolankeke

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.