mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-14 15:04:20 +02:00
26 lines
595 B
Markdown
26 lines
595 B
Markdown
# Contributing
|
|
|
|
## Installing dependencies
|
|
|
|
```bash
|
|
$ yarn install
|
|
```
|
|
|
|
`npm` doesn't install the correct dependencies for `eslint` so we use `yarn`.
|
|
|
|
## Regenerating dist/index.js
|
|
|
|
```bash
|
|
$ yarn run package
|
|
```
|
|
|
|
It is recommended to add this as a `git` `pre-commit` hook:
|
|
|
|
```bash
|
|
$ cp pre-commit .git/hooks/pre-commit
|
|
```
|
|
|
|
## Adding a new Ruby version
|
|
|
|
Add the new version in `ruby-builder-versions.js`, then follow the steps above in [Regenerating dist/index.js](#regenerating-distindexjs) to update `dist/index.js`. Finally, update the "Supported Versions" section of the README if needed.
|