Skip to content

Support .nvmrc - #338

Merged
MaksimZhukov merged 67 commits into
actions:mainfrom
hkaur008:pull209
Nov 29, 2021
Merged

Support .nvmrc#338
MaksimZhukov merged 67 commits into
actions:mainfrom
hkaur008:pull209

Conversation

@hkaur008

@hkaur008hkaur008 commented Sep 30, 2021

Copy link
Copy Markdown
Contributor

Description

In scope of this pull request we add Node.js version file support. This pull request introduces 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

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2with:
node-version-file: '.nvmrc'
- run: npm install
- run: npm test

Related issue: #32

What's done:

  • - Adding Node.js version file support
  • - Adding tests
  • - Updating documentation

@hkaur008
hkaur008 marked this pull request as draft September 30, 2021 19:41
@hkaur008hkaur008 changed the title Pull 209Support .nvmrcSep 30, 2021
@hkaur008

Copy link
Copy Markdown
ContributorAuthor

Is this reviewable now @Xlient I think we did all the tasks !

Comment threadsrc/installer.ts Outdated
Comment thread__tests__/installer.test.ts Outdated
added link to README
* migrated contents of version-file-workflow.yml to versions.yml
* further refactored parseNodeVersionFile() & tests
* removed type annotations in catch ()
Comment threaddocs/advanced-usage.md Outdated
Comment threaddocs/advanced-usage.md Outdated
Comment threadREADME.md Outdated
Comment threadsrc/main.ts Outdated
Comment threadaction.yml Outdated
* fix grammar in README & Advance usage docs
* update example in action.yml
Comment threadsrc/main.ts
Comment threadsrc/main.ts
@MaksimZhukov
MaksimZhukov merged commit d08cf22 into actions:mainNov 29, 2021
@jameswaldjameswald mentioned this pull request Nov 30, 2021
akash1810 added a commit to guardian/cdk that referenced this pull request Jan 27, 2022
Since actions/setup-node#338, GH's setup-node Action understands `.nvmrc` files.
This makes our `guardian/actions-setup-node` fork somewhat redundant now.
Move to GH's Action so we can deprecate our fork.
@jablkojablko mentioned this pull request May 2, 2022
2 tasks
deining pushed a commit to deining/setup-node that referenced this pull request Nov 9, 2023
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.5.2 to 4.5.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v4.5.2...v4.5.3)
---
updated-dependencies:
- dependency-name: typescript
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

11 participants

@hkaur008@akash1810@sndrs@MaksimZhukov@bryanmacfarlane@konradpabjan@maxim-lobanov@dmitry-shibanov@Xlient@Jg749930@TJMcCarthy95