In order to release a new version of focus on both github and npm, you have to follow these steps:
- Get the latest version of the sources on the
master
branch with agit pull origin master
- Increase the version in the
package.json
file (maybe it has already be done check npm website - Go on the Release branch with a
git checkout release
- Be sure to have the latest version of the release branch with a
git pull origin release
- Merge all changes from master branch into release branch with a
git merge master
- Perform a
npm run build
(Just to be sure) - Commit all build's product onto the release branch (it consists of the
focus-components.{js,css}
from thedist
directory). - Create a git tag
git tag -a vX.Y.Z -m 'Focus components vX.Y.Z'
- Push the tag on github
git push origin --tags
- Publish the npm package with
npm publish
command - It should be OK
- Go on github release page: Focus-components releases and draft a new release with a release note detailing all the changes and bug fixes.
- You can now go back on
master
branch and increase the package version on the latest digit:X.Y.Z+1