-
-
Notifications
You must be signed in to change notification settings - Fork 738
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create separate RELEASE.md file, update release instructions
- Loading branch information
Lucas Wojciechowski
committed
Jan 29, 2016
1 parent
282a12c
commit 30a7490
Showing
4 changed files
with
110 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
# Release Procedure | ||
|
||
## Check for "Release Blocker" issues or PRs | ||
|
||
If there are any [open "Release Blocker" issues or PRs](https://github.com/mapbox/mapbox-gl-js/labels/release%20blocker), we cannot do a release. | ||
|
||
## Get the latest `master` | ||
|
||
```bash | ||
git checkout master | ||
git fetch | ||
git merge --ff-only origin/master | ||
``` | ||
|
||
## Merge `mb-pages` into `master` | ||
|
||
```bash | ||
git merge origin/mb-pages | ||
``` | ||
|
||
## Make sure your environment is in a good state | ||
|
||
```bash | ||
npm install | ||
npm test | ||
npm run test-suite | ||
``` | ||
|
||
## Test examples | ||
|
||
Start the docs server by running | ||
|
||
```bash | ||
npm run start-docs | ||
``` | ||
|
||
Test at least the following examples before continuing | ||
|
||
- [Add GeoJSON markers](http://127.0.0.1:4000/mapbox-gl-js/example/geojson-markers/) | ||
- [Animate a point](http://127.0.0.1:4000/mapbox-gl-js/example/animate-point-along-line/) | ||
- [Get features under the mouse pointer](http://127.0.0.1:4000/mapbox-gl-js/example/featuresat/) | ||
- [Fly to a location based on scroll position](http://127.0.0.1:4000/mapbox-gl-js/example/scroll-fly-to/) | ||
- [Display markers with popups](http://127.0.0.1:4000/mapbox-gl-js/example/marker-popup/) | ||
- [Highlight features under the mouse pointer](http://127.0.0.1:4000/mapbox-gl-js/example/hover-styles/) | ||
- [Dispay driving directions](http://127.0.0.1:4000/mapbox-gl-js/example/mapbox-gl-directions/) | ||
- [Set a point after Geocoder result](http://127.0.0.1:4000/mapbox-gl-js/example/point-from-geocoder-result/) | ||
|
||
## Choose version number | ||
|
||
Choose a new version number, respecting [semver](http://semver.org/). | ||
|
||
## Update `CHANGELOG.md` | ||
|
||
Update `CHANGELOG.md` with all changes since the last release. A list of commits is available on the [GitHub Releases page](https://github.com/mapbox/mapbox-gl-js/releases) through a link that says "X commits to master since this release" | ||
|
||
## Update version number | ||
|
||
Update the version number in `package.json`, `README.md`, `bench/fps/site.js`, `_config.yml`, and `_config.mb-pages.yml`. | ||
|
||
## Commit and tag release | ||
|
||
After **carefully inspecting the diff**, commit and tag the release. **There is no going back once you execute this command! A published version tag is forever on our CDN.** | ||
|
||
```bash | ||
VERSION=vX.Y.Z # UPDATE ME | ||
git commit -am $VERSION | ||
git tag $VERSION | ||
git push origin --follow-tags | ||
``` | ||
|
||
## Create a GitHub release | ||
|
||
Create a [GitHub release](https://github.com/mapbox/mapbox-gl-js/releases/new) using the tag you just | ||
pushed and the text in `CHANGELOG.md` | ||
|
||
## Wait for CI server to build successfully | ||
|
||
The [CI server](https://circleci.com/gh/mapbox/mapbox-gl-js) will automatically publish tagged builds to the Mapbox CDN. Wait for this build to finish successfully before proceeding. | ||
|
||
## Merge `master` into `mb-pages` | ||
|
||
Merge `master` into `mb-pages` and publish the updated documentation. | ||
|
||
```bash | ||
git checkout mb-pages | ||
git merge master | ||
git push origin mb-pages | ||
git checkout master | ||
``` | ||
|
||
## Publish to npm | ||
|
||
Publish the release to npm. **There is no going back once you execute this command! A published npm package is forever.** | ||
|
||
```bash | ||
npm publish | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters