Skip to content

Commit 4bf8e65

Browse files
authored
Update to Node.js 18 (#442)
1 parent 15deb4e commit 4bf8e65

File tree

5 files changed

+1
-55
lines changed

5 files changed

+1
-55
lines changed

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,6 @@ jobs:
1919
node-version-file: .nvmrc
2020
cache: npm
2121

22-
- name: Setup NPM
23-
run: |
24-
NPM_VERSION=$(jq -r .engines.npm package.json)
25-
NPM_VERSION=${NPM_VERSION/\^/}
26-
if [ "$(npm --version)" != "$NPM_VERSION" ]; then
27-
npm install -g npm@$NPM_VERSION && npm --version
28-
else
29-
echo "NPM version is same as package.json engines.npm"
30-
fi
31-
3222
- name: Install dependencies
3323
run: npm ci
3424

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,6 @@ jobs:
2626
node-version-file: .nvmrc
2727
cache: npm
2828

29-
- name: Setup NPM
30-
run: |
31-
NPM_VERSION=$(jq -r .engines.npm package.json)
32-
NPM_VERSION=${NPM_VERSION/\^/}
33-
if [ "$(npm --version)" != "$NPM_VERSION" ]; then
34-
npm install -g npm@$NPM_VERSION && npm --version
35-
else
36-
echo "NPM version is same as package.json engines.npm"
37-
fi
38-
3929
- name: Install dependencies
4030
run: npm ci
4131

.github/workflows/test-workflow.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,6 @@ jobs:
1616
node-version-file: .nvmrc
1717
cache: npm
1818

19-
- name: Setup NPM
20-
run: |
21-
NPM_VERSION=$(jq -r .engines.npm package.json)
22-
NPM_VERSION=${NPM_VERSION/\^/}
23-
if [ "$(npm --version)" != "$NPM_VERSION" ]; then
24-
npm install -g npm@$NPM_VERSION && npm --version
25-
else
26-
echo "NPM version is same as package.json engines.npm"
27-
fi
28-
2919
- name: Install dependencies
3020
run: npm ci
3121

@@ -45,16 +35,6 @@ jobs:
4535
node-version-file: .nvmrc
4636
cache: npm
4737

48-
- name: Setup NPM
49-
run: |
50-
NPM_VERSION=$(jq -r .engines.npm package.json)
51-
NPM_VERSION=${NPM_VERSION/\^/}
52-
if [ "$(npm --version)" != "$NPM_VERSION" ]; then
53-
npm install -g npm@$NPM_VERSION && npm --version
54-
else
55-
echo "NPM version is same as package.json engines.npm"
56-
fi
57-
5838
- name: Install dependencies
5939
run: npm ci
6040

@@ -74,16 +54,6 @@ jobs:
7454
node-version-file: .nvmrc
7555
cache: npm
7656

77-
- name: Setup NPM
78-
run: |
79-
NPM_VERSION=$(jq -r .engines.npm package.json)
80-
NPM_VERSION=${NPM_VERSION/\^/}
81-
if [ "$(npm --version)" != "$NPM_VERSION" ]; then
82-
npm install -g npm@$NPM_VERSION && npm --version
83-
else
84-
echo "NPM version is same as package.json engines.npm"
85-
fi
86-
8757
- name: Install dependencies
8858
run: npm ci
8959

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v16.18.1
1+
v18.17.0

package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
"description": "NGINX config generator on steroids",
55
"private": true,
66
"license": "MIT",
7-
"engines": {
8-
"node": "^16.17.1",
9-
"npm": "^8.15.0"
10-
},
117
"main": "src/nginxconfig/mount.js",
128
"type": "module",
139
"scripts": {

0 commit comments

Comments
 (0)