-
-
Notifications
You must be signed in to change notification settings - Fork 198
Publishing
Benjamin Van Ryseghem edited this page Sep 2, 2023
·
14 revisions
This is one time setup that the maintainer will need to do.
npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
# this will login, or create account if you don't have one
npm adduser
# once you have an account you can use 'npm login'
npm install -g bower
cd path/to/project
bower register numbro git://github.com/BenjaminVanRyseghem/numbro.git
# now all semver tags pushed to github will be found by bower
- First,
git checkout develop && git pull origin develop
- Then, increment either the major, minor, or patch version as semantically correct by the changes made since the last release. There is a grunt task to increase the version of all the relevant files.
# to increase the patch version number
npm run bump:patch
# to increase the minor version number
npm run bump:minor
# to increase the minor version number
npm run bump:major
#... for more options see https://github.com/stevelacy/gulp-bump
- Update the changelog. Add an entry for the new version. Add a line for each change and thank the contributor(s).
- Run
npm install
to generate the dist files. - Make a commit with version number and changelog changes with the message "Release X.X.X"
- Push the new version as a tag to github/npm. There's a npm script for this.
npm publish
- Merge
develop
intomaster
:git push --force-with-lease origin develop:master
- Push tag:
git push --tags
- Update the webpage. Only a
npm add numbro
should be necessary. But if file structure changed, ensure that the installation steps are still correct - Write a news post for the website
- Update the cdnjs url according to the documentation
- Mark tag as release on Github