To release a new version of canvas-datagrid, I've found that this order of steps works well:
- Update the
CHANGELOG.md
file, with the new version number, date, and an overview of what's changed since the previous release. For example:
## 1.0.0 - 2025-06-01
### Added
- Big feature meriting 1.0.0 release (contributing-user-foo, #999)
-
Commit this file
-
Run
npm version patch
ornpm version <version-number>
, but usuallypatch
will suffice. This will update the package.json and package-lock.json files, commit them, and tag the commit with the new version number. -
Push the commits and tags
git push && git push --tags
- Once you've pushed the tagged commit, the GitHub Actions CI pipeline will take care of releasing it to NPM. To see how that works, refer to `.github/workflows/release.yml````