mirror of
https://github.com/rails/execjs
synced 2023-03-27 23:21:20 -04:00
24 lines
680 B
Markdown
24 lines
680 B
Markdown
# Maintaining
|
|
|
|
## Releasing a new version
|
|
|
|
This project follows [semver](http://semver.org/). So if you are making a bug
|
|
fix, only increment the patch level "2.0.x". If any new files are added, a minor
|
|
version "2.x.x" bump is in order.
|
|
|
|
### Make a release commit
|
|
|
|
To prepare the release commit, edit the
|
|
[lib/execjs/version.rb](https://github.com/sstephenson/execjs/blob/master/lib/execjs/version.rb)
|
|
`VERSION` value. Then make a single commit with the description as
|
|
"ExecJS 2.x.x". Finally, tag the commit with `v2.x.x`.
|
|
|
|
```
|
|
$ git pull
|
|
$ vim ./lib/execjs/version.rb
|
|
$ git add ./lib/execjs/version.rb
|
|
$ git ci -m "ExecJS 2.x.x"
|
|
$ git tag v2.x.x
|
|
$ git push
|
|
$ git push --tags
|
|
```
|