Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Update to readme, before archiving the project #10

Merged
merged 3 commits into from
Dec 5, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
# Archived fork of setup-node
This project is now retired. You can use the official Github [actions/setup-node](https://github.com/marketplace/actions/setup-node-js-environment) which now has some support for node version files:

There is a new optional input: `node-version-file`, that accepts path (relative to repository root) to file containing Node.js version (for example `.nvmrc`).

The action will search for the Node.js version file and read the Node.js version if the file exists. If both inputs `node-version` and `node-version-file` are specified, the action will throw a warning and the `node-version` input will be used.

#### Example of yml
```yaml
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version-file: '.nvmrc'
- run: npm install
- run: npm test
```


<details>
<summary>Click here to view the old readme</summary>

# setup-node
ashishpuliyel marked this conversation as resolved.
Show resolved Hide resolved

<p align="left">
Expand Down Expand Up @@ -144,3 +166,4 @@ Contributions are welcome! See [Contributor's Guide](docs/contributors.md)
## Code of Conduct

:wave: Be nice. See [our code of conduct](CONDUCT)
<details>
ashishpuliyel marked this conversation as resolved.
Show resolved Hide resolved