mirror of
https://github.com/Leaflet/Leaflet.git
synced 2025-12-08 21:26:14 +00:00
1.5 KiB
1.5 KiB
Releasing a new version of Leaflet
- Update the changelog since last release and commit.
- Run
npm publish --dry-runto run all the necessary checks without actually publishing, and make sure it runs successfully. - Run
npm version <patch | minor | major>(this will bump the version inpackage.jsonand create a new tag). - Run
npm publishto publish to NPM. - Verify that the release was correctly published to NPM by checking:
- Make a new release on Leaflet's GitHub release page with the most important parts of the changelog
Updating docs after the release
- Make a new branch for the update
- Write a blog post about the new release and put it in
/docs/_posts - If necessary to preserve previous version's docs, rename
dist/reference.htmltodist/reference-X.Y.Z.htmland add it to the list indocs/reference-versions.html - Run
npm run docsto generate the newdocs/reference.html - Run
npm run integrityand make suredocs/_config.ymlis updated with new hashes - Update link to latest release in
docs/download.md - Update the announcement section in
docs/index.html - Commit all the changes and submit a PR for someone to review