Chart.js relies on Travis CI to automate the library releases.
- draft release notes on GitHub for the upcoming tag
- update
masterpackage.jsonversion using semver semantic - merge
masterinto thereleasebranch - follow the build process on Travis CI
Note: if
masteris merged inreleasewith apackage.jsonversion that already exists, the tag creation fails and the release process is aborted.
Merging into the release branch kicks off the automated release process:
- build of the
dist/*.jsfiles bower.jsonis generated frompackage.jsondist/*.jsandbower.jsonare added to a detached branch- a tag is created from the
package.jsonversion - tag (with dist files) is pushed to GitHub
Creation of this tag triggers a new build:
Chart.js.zippackage is generated, containing dist files and examplesdist/*.jsandChart.js.zipare attached to the GitHub release (downloads)- a new npm package is published on npmjs
Finally, cdnjs is automatically updated from the npm release.