Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.

Commit 7bc4902

Browse files
authored
Use Node v18.18.2 LTS (Iron) (#681)
* feat(node): use v18.18.2 LTS – Iron * fix(workflow): use node version from .nvmrc > The node-version-file input accepts a path to a file containing > the version of Node.js to be used by a project, for example .nvmrc, > .node-version, .tool-versions, or package.json. https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#node-version-file * fix(workflow): remove erroneous option
1 parent 2d5a368 commit 7bc4902

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- uses: actions/checkout@master
8-
- uses: actions/setup-node@master
8+
- uses: actions/setup-node@v4
99
with:
10-
version: 14
10+
node-version-file: '.nvmrc'
11+
cache: 'yarn'
1112
- name: install
1213
run: yarn
1314
- name: Lint with ESLint
@@ -16,9 +17,10 @@ jobs:
1617
runs-on: ubuntu-latest
1718
steps:
1819
- uses: actions/checkout@master
19-
- uses: actions/setup-node@master
20+
- uses: actions/setup-node@v4
2021
with:
21-
version: 14
22+
node-version-file: '.nvmrc'
23+
cache: 'yarn'
2224
- name: install
2325
run: yarn
2426
- name: Lint with markdownlint

.github/workflows/deploy.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,11 @@ jobs:
3232

3333
- name: Checkout default branch
3434
uses: actions/checkout@v2
35-
with:
36-
version: 16
3735

38-
- name: Set up Node
39-
uses: actions/setup-node@v2
36+
- uses: actions/setup-node@v4
4037
with:
41-
node-version: 16
38+
node-version-file: '.nvmrc'
39+
cache: 'yarn'
4240

4341
- name: Cache dependencies
4442
uses: actions/cache@v2

.github/workflows/deploy_preview.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,11 @@ jobs:
2424

2525
- name: Checkout default branch
2626
uses: actions/checkout@v2
27-
with:
28-
version: 16
2927

30-
- name: Set up Node
31-
uses: actions/setup-node@v2
28+
- uses: actions/setup-node@v4
3229
with:
33-
node-version: 16
30+
node-version-file: '.nvmrc'
31+
cache: 'yarn'
3432

3533
- name: Cache dependencies
3634
uses: actions/cache@v2

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16
1+
18.18.2

0 commit comments

Comments
 (0)