Skip to content

Commit

Permalink
chore: prep repo for node.js v10 EOL (#7359)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-lai authored Jun 22, 2021
1 parent f40aa14 commit 1032d92
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 13 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,22 @@ jobs:

strategy:
matrix:
node-version: [10.13.x, 10.x, 12.x, 14.x]
node-version: [12.x, 14.x, 16.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Cache Node Modules
id: cache-node-modules
uses: actions/cache@v2
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci
- name: Lint code for errors only
run: npm run lint-errors
Expand All @@ -37,12 +44,12 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
node-version: [12.x, 14.x, 16.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
Expand All @@ -58,6 +65,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: 14.x
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
14.17
17 changes: 9 additions & 8 deletions docs/development/setting-up.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,22 @@ Swagger UI includes a development server that provides hot module reloading and
### Prerequisites

- git, any version
- NPM 6.x
- NPM >=6.12.x

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.

Current Node.js:
- Node.js 16.x
- NPM >=7.10.x

Current Node.js Active LTS:
- Node.js 12.x
- NPM 6.x
- Node.js 14.x
- NPM >=6.12.x

Current Node.js Maintenance LTS:
- Node.js 10.x
- NPM 6.x
- Node.js 12.x
- NPM >= 6.12.x

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

### Steps

Expand Down

0 comments on commit 1032d92

Please sign in to comment.