Skip to content

Instantly share code, notes, and snippets.

@tjfontaine
Last active December 20, 2015 17:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save tjfontaine/6170093 to your computer and use it in GitHub Desktop.
git checkout -b v$(python tools/getnodeversion.py)-release
(git log --first-parent --graph --pretty=format:'%h%d %s (%an)' v$(head -n1 ChangeLog | awk '{ print $3 }')^..HEAD | sort -k 3 ; echo ""; echo ""; cat ChangeLog ) > ChangeLog.x; mv ChangeLog.x ChangeLog
vi ChangeLog
## Modify changelog, we only keep entries for api changes and bug fixes for the api
## dependency upgrades are moved to the top of the changelog, and they don't include the author
### TODO XXX FIXME -- before v0.12 sort and do mail map
git log --pretty='format:%ae %an' | tail -r | awk -f tools/updateAuthors.awk
vi AUTHORS
## update to actually release
perl -pi -e 's/define NODE_VERSION_IS_RELEASE 0/define NODE_VERSION_IS_RELEASE 1/' src/node_version.h
## then commit all of this as work
git commit -am "$(bash tools/changelog-head.sh)"
## push to public repo so jenkins can see branch
git push git@github.com:joyent/node.git v$(python tools/getnodeversion.py)-release
### go to jenkins.nodejs.org kick off build
./tools/node-release-post-build.sh
### if this is for unstable copy the blog post into the website and `make release`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment