Skip to content

Commit daf15de

Browse files
authored
Update node version (#320)
* Set node 20 or higher requied * Update readme to reflect node version change * Change node version to 20 LTS
1 parent 0fe98e1 commit daf15de

File tree

5 files changed

+58
-7
lines changed

5 files changed

+58
-7
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This CI Workflow was deployed and configured by WarpWing and Nate.
2+
name: CI/CD (20.18.3)
3+
4+
on:
5+
push:
6+
pull_request:
7+
workflow_dispatch:
8+
9+
env:
10+
NODE_VERSION: "20.18.3"
11+
12+
jobs:
13+
es-lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Git checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Use Node.js ${{ env.NODE_VERSION }}
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: ${{ env.NODE_VERSION }}
23+
24+
- name: Install node dependencies
25+
run: npm i
26+
27+
- name: es-lint
28+
run: npm run lint
29+
30+
prettier:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Git checkout
34+
uses: actions/checkout@v4
35+
36+
- name: Use Node.js ${{ env.NODE_VERSION }}
37+
uses: actions/setup-node@v4
38+
with:
39+
node-version: ${{ env.NODE_VERSION }}
40+
41+
- name: Install node dependencies
42+
run: npm i
43+
44+
- name: Prettier
45+
run: npm run prettier
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
# This CI Workflow was deployed and configured by WarpWing and Nate.
2-
name: CI/CD
2+
name: CI/CD (latest)
33

44
on:
55
push:
66
pull_request:
77
workflow_dispatch:
88

99
env:
10-
NODE_VERSION: "16.x"
10+
NODE_VERSION: "latest"
1111

1212
jobs:
1313
es-lint:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Git checkout
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1818

1919
- name: Use Node.js ${{ env.NODE_VERSION }}
20-
uses: actions/setup-node@v2
20+
uses: actions/setup-node@v4
2121
with:
2222
node-version: ${{ env.NODE_VERSION }}
2323

@@ -31,10 +31,10 @@ jobs:
3131
runs-on: ubuntu-latest
3232
steps:
3333
- name: Git checkout
34-
uses: actions/checkout@v2
34+
uses: actions/checkout@v4
3535

3636
- name: Use Node.js ${{ env.NODE_VERSION }}
37-
uses: actions/setup-node@v2
37+
uses: actions/setup-node@v4
3838
with:
3939
node-version: ${{ env.NODE_VERSION }}
4040

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ that went into it. Thank you!
2323
## NodeJS
2424

2525
- Git
26-
- NodeJS >= 16.9
26+
- NodeJS >= 20.18.3
2727
- A Minecraft account
2828

2929
### Setup Guide for NodeJS

package-lock.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,8 @@
7171
"onlyBuiltDependencies": [
7272
"canvas"
7373
]
74+
},
75+
"engines": {
76+
"node": ">=20.18.3"
7477
}
7578
}

0 commit comments

Comments
 (0)