Coder Social home page Coder Social logo

semantic-release-sample's Introduction

semantic-release-sample

Sample of how to integrate semantic release into an application.

Try it out:

Commit Linter:
  • Semantic release will analyze your commits. Set a new version, generate release notes. It will need push rights to this repo, so start out by forking this repo.
  • To use this you will need to use conventional commits. A commit linter ensure you are following this standard. The script assumes a feature branch workflow.
git checkout -b coolfeature
echo something cool >> somefile.txt
git add somefile.txt
git commit -m "this is not a conventional commit message"
./ci/commit_lint.sh
  • This will run into an error. A Jenkins build would've been aborted here
git commit --amend -m "feat: added a cool thing"
./ci/commit_lint.sh
  • Much better
Semantic Release:
  • Run this to try out the actual semantic release. Configuration can be altered in the .releaserc file.
git checkout -b production master
git merge --no-ff coolfeature
./ci/semantic_release.sh
  • The sample app has been automatically released and a git tag been pushed
  • ci/export_version.sh has been called - you can do stuff with your version number there - for example:
oc set env dc/my-application APP_VERSION="${APP_VERSION}"
  • target/RELEASE_NOTES.md has been generated

Use it:

  • Copy the ci folder and the .releaserc to your project
  • Adjust settings in the .releaserc
  • You can also automate jira releases. A sample config exists: .releaserc_with_jira - it requires auth via a JIRA_AUTH environment variable.
  • On Jekins call ci/commit_lint.sh on your feature branches
  • On Jekins call ci/semantic_release.sh on your production branch

semantic-release-sample's People

Contributors

cinocode avatar dependabot[bot] 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.