Update to Node.js 18 (#442)

This commit is contained in:
Matt Cowley 2023-07-28 15:39:42 +01:00 committed by GitHub
parent 15deb4e467
commit 4bf8e65ed4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 1 additions and 55 deletions

View File

@ -19,16 +19,6 @@ jobs:
node-version-file: .nvmrc
cache: npm
- name: Setup NPM
run: |
NPM_VERSION=$(jq -r .engines.npm package.json)
NPM_VERSION=${NPM_VERSION/\^/}
if [ "$(npm --version)" != "$NPM_VERSION" ]; then
npm install -g npm@$NPM_VERSION && npm --version
else
echo "NPM version is same as package.json engines.npm"
fi
- name: Install dependencies
run: npm ci

View File

@ -26,16 +26,6 @@ jobs:
node-version-file: .nvmrc
cache: npm
- name: Setup NPM
run: |
NPM_VERSION=$(jq -r .engines.npm package.json)
NPM_VERSION=${NPM_VERSION/\^/}
if [ "$(npm --version)" != "$NPM_VERSION" ]; then
npm install -g npm@$NPM_VERSION && npm --version
else
echo "NPM version is same as package.json engines.npm"
fi
- name: Install dependencies
run: npm ci

View File

@ -16,16 +16,6 @@ jobs:
node-version-file: .nvmrc
cache: npm
- name: Setup NPM
run: |
NPM_VERSION=$(jq -r .engines.npm package.json)
NPM_VERSION=${NPM_VERSION/\^/}
if [ "$(npm --version)" != "$NPM_VERSION" ]; then
npm install -g npm@$NPM_VERSION && npm --version
else
echo "NPM version is same as package.json engines.npm"
fi
- name: Install dependencies
run: npm ci
@ -45,16 +35,6 @@ jobs:
node-version-file: .nvmrc
cache: npm
- name: Setup NPM
run: |
NPM_VERSION=$(jq -r .engines.npm package.json)
NPM_VERSION=${NPM_VERSION/\^/}
if [ "$(npm --version)" != "$NPM_VERSION" ]; then
npm install -g npm@$NPM_VERSION && npm --version
else
echo "NPM version is same as package.json engines.npm"
fi
- name: Install dependencies
run: npm ci
@ -74,16 +54,6 @@ jobs:
node-version-file: .nvmrc
cache: npm
- name: Setup NPM
run: |
NPM_VERSION=$(jq -r .engines.npm package.json)
NPM_VERSION=${NPM_VERSION/\^/}
if [ "$(npm --version)" != "$NPM_VERSION" ]; then
npm install -g npm@$NPM_VERSION && npm --version
else
echo "NPM version is same as package.json engines.npm"
fi
- name: Install dependencies
run: npm ci

2
.nvmrc
View File

@ -1 +1 @@
v16.18.1
v18.17.0

View File

@ -4,10 +4,6 @@
"description": "NGINX config generator on steroids",
"private": true,
"license": "MIT",
"engines": {
"node": "^16.17.1",
"npm": "^8.15.0"
},
"main": "src/nginxconfig/mount.js",
"type": "module",
"scripts": {