chore: prep repo for node.js v10 EOL (#7359)
This commit is contained in:
17
.github/workflows/nodejs.yml
vendored
17
.github/workflows/nodejs.yml
vendored
@@ -15,15 +15,22 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [10.13.x, 10.x, 12.x, 14.x]
|
node-version: [12.x, 14.x, 16.x]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
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
|
- name: Install dependencies
|
||||||
|
if: steps.cache-node-modules.outputs.cache-hit != 'true'
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Lint code for errors only
|
- name: Lint code for errors only
|
||||||
run: npm run lint-errors
|
run: npm run lint-errors
|
||||||
@@ -37,12 +44,12 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [10.x, 12.x, 14.x]
|
node-version: [12.x, 14.x, 16.x]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
@@ -58,6 +65,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Use Node.js
|
- name: Use Node.js
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 14.x
|
node-version: 14.x
|
||||||
|
|||||||
@@ -5,21 +5,22 @@ Swagger UI includes a development server that provides hot module reloading and
|
|||||||
### Prerequisites
|
### Prerequisites
|
||||||
|
|
||||||
- git, any version
|
- 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.
|
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:
|
Current Node.js Active LTS:
|
||||||
- Node.js 12.x
|
- Node.js 14.x
|
||||||
- NPM 6.x
|
- NPM >=6.12.x
|
||||||
|
|
||||||
Current Node.js Maintenance LTS:
|
Current Node.js Maintenance LTS:
|
||||||
- Node.js 10.x
|
- Node.js 12.x
|
||||||
- NPM 6.x
|
- NPM >= 6.12.x
|
||||||
|
|
||||||
Unsupported Node.js LTS that should still work:
|
|
||||||
- Node.js 8.13.0 or greater
|
|
||||||
- NPM 6.x
|
|
||||||
|
|
||||||
### Steps
|
### Steps
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user