Series of github actions are used to automate the library releases.
release-drafter
action updates a draft of release notes after each push. Its based on labels and the commit messages, so its important to label pull requests and have clean commits. If the draft contains commits that do not fall under any heading, those commits should be labeled and the drafter re-run from actions.
- update
master
package.json
version using semver semantic - update the tag and version in the release draft to match
package.json
. Mark it aspre-release
if you would like to publis withnext
tag on npmjs - publish the release in GitHub. Publishing will trigger the
publish-npm
action. You can monitor the process in actions
Triggered for each push to master. Creates or updates a draft of release notes for next release.
Triggered for each pull-request. Calculates the compressed size compared to master. Result can be seen in the action log.
Publishing a GitHub release off the automated release process:
- build of the
dist/*.js
files chartjs-plugin-zoom-{version}.tgz
package is generated, containing dist files and examplesdist/*.js
andchartjs-plugin-zoom-{version}.tgz
are attached to the GitHub release tag- a new npm package is published on npmjs
Finally, cdnjs is automatically updated from the npm release.