Maintaining
November 21, 2024 ยท View on GitHub
Release Process
Series of github actions are used to automate the library releases.
Releasing a New Version
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
masterpackage.jsonversion using semver semantic - update the tag and version in the release draft to match
package.json. Mark it aspre-releaseif you would like to publish withnexttag on npmjs - publish the release in GitHub. Publishing will trigger the
publish-npmaction. You can monitor the process in actions
Automated Tasks
release-drafter
Triggered for each push to master. Creates or updates a draft of release notes for next release.
compressed-size
Triggered for each pull-request. Calculates the compressed size compared to master. Result can be seen in the action log.
npm-publish
Publishing a GitHub release off the automated release process:
- build of the
dist/*.jsfiles chartjs-plugin-zoom-{version}.tgzpackage is generated, containing dist files and examplesdist/*.jsandchartjs-plugin-zoom-{version}.tgzare attached to the GitHub release tag- a new npm package is published on npmjs
Finally, cdnjs is automatically updated from the npm release.