Skip to content

Commit 1032d92

Browse files
authored
chore: prep repo for node.js v10 EOL (#7359)
1 parent f40aa14 commit 1032d92

File tree

3 files changed

+22
-13
lines changed

3 files changed

+22
-13
lines changed

.github/workflows/nodejs.yml

+12-5
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,22 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
node-version: [10.13.x, 10.x, 12.x, 14.x]
18+
node-version: [12.x, 14.x, 16.x]
1919

2020
steps:
2121
- uses: actions/checkout@v2
2222
- name: Use Node.js ${{ matrix.node-version }}
23-
uses: actions/setup-node@v1
23+
uses: actions/setup-node@v2
2424
with:
2525
node-version: ${{ matrix.node-version }}
26+
- name: Cache Node Modules
27+
id: cache-node-modules
28+
uses: actions/cache@v2
29+
with:
30+
path: node_modules
31+
key: node-modules-${{ hashFiles('package-lock.json') }}
2632
- name: Install dependencies
33+
if: steps.cache-node-modules.outputs.cache-hit != 'true'
2734
run: npm ci
2835
- name: Lint code for errors only
2936
run: npm run lint-errors
@@ -37,12 +44,12 @@ jobs:
3744

3845
strategy:
3946
matrix:
40-
node-version: [10.x, 12.x, 14.x]
47+
node-version: [12.x, 14.x, 16.x]
4148

4249
steps:
4350
- uses: actions/checkout@v2
4451
- name: Use Node.js ${{ matrix.node-version }}
45-
uses: actions/setup-node@v1
52+
uses: actions/setup-node@v2
4653
with:
4754
node-version: ${{ matrix.node-version }}
4855
- name: Install dependencies
@@ -58,6 +65,6 @@ jobs:
5865
steps:
5966
- uses: actions/checkout@v2
6067
- name: Use Node.js
61-
uses: actions/setup-node@v1
68+
uses: actions/setup-node@v2
6269
with:
6370
node-version: 14.x

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
14.17

docs/development/setting-up.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,22 @@ Swagger UI includes a development server that provides hot module reloading and
55
### Prerequisites
66

77
- git, any version
8-
- NPM 6.x
8+
- NPM >=6.12.x
99

1010
Generally, we recommend the following guidelines from [Node.js Releases](https://nodejs.org/en/about/releases/) to only use Active LTS or Maintenance LTS releases.
1111

12+
Current Node.js:
13+
- Node.js 16.x
14+
- NPM >=7.10.x
15+
1216
Current Node.js Active LTS:
13-
- Node.js 12.x
14-
- NPM 6.x
17+
- Node.js 14.x
18+
- NPM >=6.12.x
1519

1620
Current Node.js Maintenance LTS:
17-
- Node.js 10.x
18-
- NPM 6.x
21+
- Node.js 12.x
22+
- NPM >= 6.12.x
1923

20-
Unsupported Node.js LTS that should still work:
21-
- Node.js 8.13.0 or greater
22-
- NPM 6.x
2324

2425
### Steps
2526

0 commit comments

Comments
 (0)