mirror of
https://github.com/Leaflet/Leaflet.git
synced 2026-02-01 17:27:23 +00:00
2.3 KiB
2.3 KiB
Documentation for the release process of Leaflet.
Please note that you will need to have a git remote called origin that points to Leaflet's GitHub repo, since the publish script assumes it
- Make a new release branch (for example named
prepare-X.Y.Z) - Make sure you do not have any
package.lock.jsonoryarn.locklocally, since they can potentially make you build with the wrong package versions - Update the changelog since last release and commit to the release branch
- Write a blog post about the new release and put in
/docs/_postsand commit to the release branch - Bump version number in
package.jsonand commit tomaster - Run
npm run release - Verify that the release was correctly published to NPM by checking:
- Update API docs:
- run
jake docs - Copy the built docs from
dist/reference-X.Y.Z.htmltodocs/reference-X.Y.Z.html - Update the built docs header to use Jekyll style; see commit 11d716f0964d8bc0d058ca09e9ba8003451b4b8d as reference for the needed changes
- Commit the new docs to the release branch
- run
- Update
docs/reference.htmlto redirect to the new version and commit the change to the release branch - Update integrity hashes:
- Checkout the release tag (
git checkout vX.Y.Z) - Run
npm run integrityor simplynode ./build/integrity.jsif you're not on Debian - Copy the hashes and update
integrity_hash_css,integrity_hash_sourceandintegrity_hash_uglifiedindocs/_config.yml; commit changes to the release branch
- Checkout the release tag (
- Update link to latest release in
docs/download.html, and commit to the release branch - Update
latest_leaflet_versionindocs/_config.ymland commit to the release branch - Update the "Latest news" section in
docs/index.htmland commit to the release branch - If it looks like everything is good at this point, merge the release branch into
master - Make a new release on Leaflet's GitHub release page with the most important parts of the changelog