Skip to content

Commit a0f79c6

Browse files
authored
chore: parameterize Node.js 22 in .node-version file (#50)
1 parent b7447ff commit a0f79c6

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Setup Node.js
3636
uses: actions/setup-node@v4
3737
with:
38-
node-version: 22
38+
node-version-file: .node-version
3939
- name: Cypress Component Tests
4040
uses: cypress-io/github-action@v6
4141
with:

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22

readme.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ This repo contains several examples of the
44
[Cypress Component Testing Getting Started app](https://docs.cypress.io/guides/component-testing/writing-your-first-component-test)
55
in various frameworks and libraries.
66

7-
To get started with an example, clone the repo, go into the desired directory,
8-
and `npm install`, and then run the application as you normally would for that
9-
framework (see the folders readme file).
7+
To get started with an example, first clone the repo.
8+
9+
Use the recommended version of [Node.js](https://nodejs.org/en/) as shown by the file [.node-version](./.node-version) contents.
10+
The repo [node-version-usage](https://github.com/shadowspawn/node-version-usage) contains a list of Node.js version managers that read and use the contents of a [.node-version](./.node-version) file to install and use the specified version.
11+
12+
Go into the desired directory, execute `npm install`,
13+
and then run the application as you normally would for that
14+
framework (see the folder's readme file).

0 commit comments

Comments
 (0)