https://github.com/sv-oss/node-n-buildkite-plugin
Node version manager tool (n) buildkite plugin
https://github.com/sv-oss/node-n-buildkite-plugin
buildkite-plugin
Last synced: 7 months ago
JSON representation
Node version manager tool (n) buildkite plugin
- Host: GitHub
- URL: https://github.com/sv-oss/node-n-buildkite-plugin
- Owner: sv-oss
- License: mit
- Created: 2021-09-03T08:03:34.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-11T14:35:00.000Z (almost 4 years ago)
- Last Synced: 2023-03-04T18:59:20.175Z (over 2 years ago)
- Topics: buildkite-plugin
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Node version manager tool (`n`) buildkite plugin
Install and manage multiple node versions by leveraging the [n](https://github.com/tj/n) tool
## Example
Add the following to your `pipeline.yml`:
```yml
steps:
- command: node --version
plugins:
- sv-oss/node-n#v0.1.2:
node-version: v15
```## Configuration
### `node-version` (Optional, string)
The node version to install. (defaults to `lts`)
This parameter accepts any input supported by the `n` tool install command.
See the [relevant documentation](https://github.com/tj/n#specifying-nodejs-versions) for more information### `tool-install-dir` (Optional, string)
Directory in which the N tool will be installed. (defaults to `$HOME/n`)
## Developing
To run the tests:
```shell
docker-compose run --rm tests
```## Contributing
1. Fork the repo
2. Make the changes
3. Run the tests
4. Commit and push your changes
5. Send a pull request