| 1 | ## Release procedure |
| 2 | |
| 3 | Update version numbers in src/LercLib/include/Lerc_c_api.h and CMakeLists.txt |
| 4 | |
| 5 | ### npm release |
| 6 | |
| 7 | - Config build environment. For 4.2.0 release: Node.js v24.11.1 LTS, npm 11.6.2 |
| 8 | - Update the following files in OtherLanguages/js |
| 9 | - Run npm version xxx to update version numbers in package.json |
| 10 | - Update CHANGELOG.md |
| 11 | - Update copyright year in Gruntfile.js, README.md |
| 12 | - If applicable, update usage in README.md |
| 13 | - Build and publish to npm |
| 14 | |
| 15 | ``` |
| 16 | cd OtherLanguages/js |
| 17 | npm install && npm run build |
| 18 | cd dist |
| 19 | npm pack --dry-run (check file list and version) |
| 20 | npm login |
| 21 | npm publish |
| 22 | ``` |