Skip to content

Instantly share code, notes, and snippets.

@jchip
Last active June 19, 2017 06:49
Show Gist options
  • Save jchip/ad08356373e9461118b2b36fe40ce885 to your computer and use it in GitHub Desktop.
Save jchip/ad08356373e9461118b2b36fe40ce885 to your computer and use it in GitHub Desktop.

Steps to update changelog and publish

Update Changelog

Update the tag below to the last Publish tag and run it to get a list of the changes

export tag="[email protected]"
git log ${tag}...${HEAD} --pretty=format:'  - [commit](http://github.com/electrode-io/electrode/commit/%H) %s' --reverse | grep -v "Merge pull request"

Update the file CHANGELOG.md with:

# <Date>
## Packages

<TBD>

## Commits

< Paste the output from running the script above >

Commit the file CHANGELOG.md with message "Update CHANGELOG"

Dry run lerna

node_modules/.bin/lerna publish --skip-git --skip-npm

Get something like this at the end:

 - electrode-archetype-react-app-dev: 2.3.2 => 2.3.3
 - electrode-archetype-react-app: 2.3.2 => 2.3.3
 - electrode-archetype-react-component-dev: 2.0.2 => 2.0.3
 - electrode-archetype-react-component: 2.0.2 => 2.0.3
 - electrode-react-webapp: 1.5.0 => 1.5.1
 - electrode-redux-router-engine: 1.4.0 => 1.4.1
 - electrode-webpack-reporter: 0.3.5 => 0.3.6
 - generator-electrode: 2.0.1 => 2.1.0

Update it to the following paste it to under Packages

 - [email protected]: `(2.3.2 => 2.3.3)`
 - [email protected]: `(2.3.2 => 2.3.3)`
 - [email protected]: `(2.0.2 => 2.0.3)`
 - [email protected]: `(2.0.2 => 2.0.3)`
 - [email protected]: `(1.5.0 => 1.5.1)`
 - [email protected]: `(1.4.0 => 1.4.1)`
 - [email protected]: `(0.3.5 => 0.3.6)`
 - [email protected]: `(2.0.1 => 2.1.0)`

Do an amend commit of CHANGELOG.md

git add CHANGELOG.md
git commit -amend

Run lerna publish for real

node_modules/.bin/lerna publish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment