diff --git a/.github/workflows/ci-cd-20.18.3.yml b/.github/workflows/ci-cd-20.18.3.yml new file mode 100644 index 00000000..d68cd06a --- /dev/null +++ b/.github/workflows/ci-cd-20.18.3.yml @@ -0,0 +1,45 @@ +# This CI Workflow was deployed and configured by WarpWing and Nate. +name: CI/CD (20.18.3) + +on: + push: + pull_request: + workflow_dispatch: + +env: + NODE_VERSION: "20.18.3" + +jobs: + es-lint: + runs-on: ubuntu-latest + steps: + - name: Git checkout + uses: actions/checkout@v4 + + - name: Use Node.js ${{ env.NODE_VERSION }} + uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + + - name: Install node dependencies + run: npm i + + - name: es-lint + run: npm run lint + + prettier: + runs-on: ubuntu-latest + steps: + - name: Git checkout + uses: actions/checkout@v4 + + - name: Use Node.js ${{ env.NODE_VERSION }} + uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + + - name: Install node dependencies + run: npm i + + - name: Prettier + run: npm run prettier diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd-latest.yml similarity index 79% rename from .github/workflows/ci-cd.yml rename to .github/workflows/ci-cd-latest.yml index 3d5096b0..60aaeb8b 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd-latest.yml @@ -1,5 +1,5 @@ # This CI Workflow was deployed and configured by WarpWing and Nate. -name: CI/CD +name: CI/CD (latest) on: push: @@ -7,17 +7,17 @@ on: workflow_dispatch: env: - NODE_VERSION: "16.x" + NODE_VERSION: "latest" jobs: es-lint: runs-on: ubuntu-latest steps: - name: Git checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} @@ -31,10 +31,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Git checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} diff --git a/README.md b/README.md index ca449191..5f5e9215 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ that went into it. Thank you! ## NodeJS - Git -- NodeJS >= 16.9 +- NodeJS >= 20.18.3 - A Minecraft account ### Setup Guide for NodeJS diff --git a/package-lock.json b/package-lock.json index 03fd5784..85a8c6ed 100644 --- a/package-lock.json +++ b/package-lock.json @@ -43,6 +43,9 @@ "jest": "^29.7.0", "nodemon": "^2.0.22", "prettier": "3.2.5" + }, + "engines": { + "node": ">=20.x.x" } }, "node_modules/@ampproject/remapping": { diff --git a/package.json b/package.json index cec1586d..3d6ad45e 100644 --- a/package.json +++ b/package.json @@ -71,5 +71,8 @@ "onlyBuiltDependencies": [ "canvas" ] + }, + "engines": { + "node": ">=20.18.3" } }