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
- Make updates in the changelog to describe the new release
- 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 your 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
) - 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, create 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)