This will be a replacement for https://github.com/NuCivic/react-dash/blob/master/docs/development/workflows/publish.md
- Set up an account on npm
- Get added as maintainer on https://www.npmjs.com/package/react-dash and on the github repository
- Identify the next release based on semantic versioning, in the form of
x.y.z
- Verify you have the appropriate git remotes, both an
origin
for your fork and anupstream
for the React Dash repository - A GPG key setup in github. How to generate a GPG key: https://help.github.com/articles/generating-a-new-gpg-key/
** All dev branches should be pushed to and tested in the integration branch. Each dev branch should contain changelog.md notes of changes made/features added in the ticket.
- After all the dev branches slated for release have been merged into integration , confirm that the updates in the changelog from individual branches completely describes the new release.
- In ReactDashboard.js, update the version number in the console.log statement (line 2, for now) to reflect the react-dash version that you are about release.
console.log('React Dashboard -- 0.7.2');
- Check the status of your local repository for any unwanted changes:
git status
(please note: you should not have any unexpected local changes that have not been code reviewed within a pull request) - Commit the changelog and any final changes:
git commit -a -m "Changelog for the [x.y.z] release"
(please substitute x.y.z for the new release) - Verify that you are in the integration branch:
git branch -v
. - If you are not on the master branch, please merge your current branch (which should be your release candidate) into master:
git checkout master && git merge [branch from previous step]
(please substitute the [branch from previous step] with the output from the aforementioned branch verification step) - Update the version of the package:
npm version [ patch | minor ]
(please substitute specifically with the wordpatch
orminor
). NOTE: This step cannot be successfully completed without an existing GPG key in github. - Publish the package:
npm publish
- Commit the package and tag:
git commit -a -m "Package info for the [x.y.z] release" && git push upstream master --tags
(please substitute x.y.z for the new release) - Go to the github releases page, confirm that the
npm publish
step created a new release from the x.y.z tag.
Confirm that publication was successful (eg: npm install react-dash@0.3.5
then confirm that code updates are valid)
We use semantic versioning http://semver.org/
x.y.z x = major version (not currently implemented), y = minor version, z = patch version
minor versions are NOT backward compatible before v1.0.0 (0.7.x is not guaranteed to be backwards compatible with 0.6.x)
patch versions should maintain backwards compatibility (0.7.2 should be compatible with 0.7.3)