2016-03-13 07:27:32 +00:00
|
|
|
# Release Notes
|
2016-01-26 05:30:23 +00:00
|
|
|
|
2016-03-13 07:27:32 +00:00
|
|
|
My notes for release commands to NPM
|
2016-01-26 05:30:23 +00:00
|
|
|
|
|
|
|
## Releasing
|
|
|
|
|
|
|
|
At branch `development` ready to release to npm:
|
|
|
|
|
|
|
|
``` bash
|
|
|
|
# Make sure ci tests pass
|
2016-03-13 16:35:46 +00:00
|
|
|
npm run ci
|
2016-01-26 05:30:23 +00:00
|
|
|
|
|
|
|
# See the current version
|
2016-03-13 16:35:46 +00:00
|
|
|
npm version
|
2016-01-26 05:30:23 +00:00
|
|
|
|
|
|
|
# Update the changlog and perform cleanup on it
|
2016-03-13 16:35:46 +00:00
|
|
|
git changelog docs/changelog.md --tag <next version>
|
|
|
|
subl docs/changelog.md
|
2016-01-26 05:30:23 +00:00
|
|
|
|
2016-03-13 16:35:46 +00:00
|
|
|
git add docs/changelog.md
|
2016-03-14 04:43:44 +00:00
|
|
|
git commit -m "Update changelog for \`v<next version>\`"
|
2016-01-26 05:30:23 +00:00
|
|
|
|
2016-03-13 16:35:46 +00:00
|
|
|
npm version <next version>
|
2016-01-26 05:30:23 +00:00
|
|
|
|
|
|
|
# Can automate from here onwards
|
|
|
|
|
|
|
|
# Publish it to npm
|
2016-03-13 16:35:46 +00:00
|
|
|
npm run release
|
2016-01-26 05:30:23 +00:00
|
|
|
|
|
|
|
# Merge changes into master
|
2016-03-13 16:35:46 +00:00
|
|
|
git checkout master
|
|
|
|
git merge development
|
2016-01-26 05:30:23 +00:00
|
|
|
|
2016-03-13 16:35:46 +00:00
|
|
|
git push --follow-tags
|
2016-01-26 05:30:23 +00:00
|
|
|
|
|
|
|
# Return to development
|
2016-03-13 16:35:46 +00:00
|
|
|
git checkout development
|
2016-03-14 04:43:44 +00:00
|
|
|
|
2016-01-26 05:30:23 +00:00
|
|
|
```
|