mirror of
https://github.com/Leaflet/Leaflet.git
synced 2025-12-08 21:26:14 +00:00
1.9 KiB
1.9 KiB
Releasing a new version of Leaflet
- Ensure all https://github.com/Leaflet/Leaflet/labels/blocker issues and pull requests are resolved.
- Update the changelog since last release and commit.
- Make sure all tests pass on CI before proceeding.
- Run
npm version <patch | minor | major>(this will bump the version inpackage.jsonand create a new tag). - Run
git push --follow-tagsto push the commit created by NPM to Github (together with the tag). - Wait for the CI to complete and follow the logs to make sure it runs successfully.
- 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
- Download TGZ archive from https://registry.npmjs.org/leaflet/-/leaflet-X.X.X.tgz (where
X.X.Xis the new version number) and upload it as an "asset" of the GitHub release.
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/ - Click here to save a snapshot
of the version of docs prior to this release to the Internet Archive's Wayback Machine
(and optionally, add a link to the snapshot in
docs/reference-versions.html). - Run
npm run docsto generate the newdocs/reference.htmland update integrity hashes indocs/_config.yml - 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