Browse Source

Update to Node.js 18 (#442)

pull/445/head
Matt Cowley 1 year ago committed by GitHub
parent
commit
4bf8e65ed4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      .github/workflows/do-spaces-workflow.yml
  2. 10
      .github/workflows/gh-pages-workflow.yml
  3. 30
      .github/workflows/test-workflow.yml
  4. 2
      .nvmrc
  5. 4
      package.json

10
.github/workflows/do-spaces-workflow.yml

@ -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

10
.github/workflows/gh-pages-workflow.yml

@ -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

30
.github/workflows/test-workflow.yml

@ -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

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

4
package.json

@ -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": {

Loading…
Cancel
Save