1 | # Maintaining
|
2 |
|
3 | ## Releasing a new version
|
4 |
|
5 | This project follows [semver](http://semver.org/). So if you are making a bug
|
6 | fix, only increment the patch level "1.0.x". If any new files are added, a
|
7 | minor version "1.x.x" bump is in order.
|
8 |
|
9 | ### Make a release commit
|
10 |
|
11 | To prepare the release commit:
|
12 |
|
13 | 1. Edit the [bower.json](https://github.com/camsong/fetch-jsonp/blob/master/bower.json)
|
14 | `version` value.
|
15 | 2. Change the npm [package.json](https://github.com/camsong/fetch-jsonp/blob/master/package.json)
|
16 | `version` value to match.
|
17 | 3. Make a single commit with the description as "Fetch JSONP 1.x.x".
|
18 | 4. Finally, tag the commit with `v1.x.x`.
|
19 |
|
20 | ```
|
21 | $ git pull
|
22 | $ vim bower.json
|
23 | $ vim package.json
|
24 | $ git add bower.json package.json
|
25 | $ git commit -m "Fetch JSONP 1.x.x"
|
26 | $ git tag v1.x.x
|
27 | $ git push
|
28 | $ git push --tags
|
29 | ```
|