GithubHelp home page GithubHelp logo

isabella232 / lerna-semantic-release Goto Github PK

View Code? Open in Web Editor NEW

This project forked from atlassian/lerna-semantic-release

0.0 0.0 0.0 790 KB

๐Ÿ“ฆ:๐Ÿ› โœจ๐Ÿ’ฅ โ€“ fully automated package publishing

Home Page: https://www.npmjs.com/package/lerna-semantic-release

JavaScript 96.63% Shell 3.37%

lerna-semantic-release's Introduction

lerna-semantic-release

Status: npm version npm downloads Build Status

semantic-release for lerna-based projects.

Basically a semantic-release that orders commits based on which package they belong to (uses data from cz-lerna-changelog) and then determines on that what the next release should be.

Setup

Setting up commitizen

Install cz-lerna-changelog in your repository:

npm install commitizen -g

Next, initialize your project to use the cz-lerna-changelog adapter by typing:

commitizen init cz-lerna-changelog --save-dev --save-exact

See the commitizen-cli docs for more details on how to set up commitizen with the correct adapter.

Setting up the build

You'll need to set up your build in such a way that tags and commits can be pushed back to the repository. This is so that lerna can stay in sync with the NPM releases.

You'll also need to set the NPM_TOKEN environment variable so that npm can run npm publish on your components.

Travis CI integration

See .travis.yml and .travis/ in this repository for examples of how to set up lerna-semantic-release with Travis CI.

The following environment variables will need to be set:

NPM_CONFIG_EMAIL 
NPM_CONFIG_USERNAME 
NPM_TOKEN 
GH_TOKEN 
RELEASE_GH_TOKEN
RELEASE_GH_USERNAME

Releasing

Execute these commands in your release process:

# Pre
lerna-semantic-release pre # Set up the versions, tags and commits

# Perform
lerna-semantic-release perform # Publishes to npm

# Post
lerna-semantic-release post # Generates a changelog in each package in a file named CHANGELOG.md - will not commit or push that file any more after version 7.0.5 any more. If you want to do something with it, you will need to do this manually.

This will publish all npm packages, including creating commits and tags for each release, in the format that lerna expects for the `lerna updated` command.

lerna-semantic-release's People

Contributors

amanda-mitchell avatar ariporad avatar bahmutov avatar bassjacob avatar boennemann avatar cef62 avatar christophwitzko avatar colineberhardt avatar design-platform avatar emmenko avatar gitter-badger avatar gr2m avatar greenkeeperio-bot avatar hawkrives avatar jaketrent avatar joscha avatar jpnelson avatar jrwebdev avatar lerna-sr-travis-ci avatar lewiscowper avatar lukebatchelor avatar siilwyn avatar singuerinc avatar soneymathew avatar starefossen avatar tlvince avatar vovacodes 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.