From a0bdc9825acd5fb098c18cabfca82ea3cebbe955 Mon Sep 17 00:00:00 2001 From: Kevin Lu <6320810+kevinlul@users.noreply.github.com> Date: Sun, 10 Nov 2024 23:42:20 -0500 Subject: [PATCH 1/2] Upgrade to Node.js 22 LTS DawnbrandBots/bastion-bot#536 --- .github/workflows/lint.yaml | 2 +- .github/workflows/merge.yaml | 2 +- .github/workflows/validate-data.yaml | 2 +- package.json | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index f462f8dd52..eeb997fe16 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -61,7 +61,7 @@ jobs: sparse-checkout-cone-mode: false - uses: actions/setup-node@v4 with: - node-version: 20 + node-version-file: .node-version cache: yarn cache-dependency-path: yarn.lock - run: yarn diff --git a/.github/workflows/merge.yaml b/.github/workflows/merge.yaml index 4399aab6d0..a106f6e86b 100644 --- a/.github/workflows/merge.yaml +++ b/.github/workflows/merge.yaml @@ -106,7 +106,7 @@ jobs: - if: steps.commit.outputs.status > 0 uses: actions/setup-node@v4 with: - node-version: 20 + node-version-file: .node-version cache: yarn cache-dependency-path: yaml-yugi/yarn.lock - if: steps.commit.outputs.status > 0 diff --git a/.github/workflows/validate-data.yaml b/.github/workflows/validate-data.yaml index d1adde65f9..4dad3bee3e 100644 --- a/.github/workflows/validate-data.yaml +++ b/.github/workflows/validate-data.yaml @@ -28,7 +28,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20 + node-version-file: .node-version cache: yarn - run: yarn - uses: actions/setup-python@v5 diff --git a/package.json b/package.json index 6515a26434..2435350d31 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "lint": "eslint 'src/**/*.ts'" }, "engines": { - "node": ">=20", + "node": ">=22", "yarn": "1.22.x" }, "dependencies": { @@ -24,7 +24,7 @@ "js-yaml": "^4.1.0" }, "devDependencies": { - "@alphakretin/essentials": "^6.2.0", + "@alphakretin/essentials": "^7.0.0", "@types/js-yaml": "^4.0.9" }, "eslintConfig": { From 1cc327fe41b8453c008dce91cf859552abbb772c Mon Sep 17 00:00:00 2001 From: Kevin Lu <6320810+kevinlul@users.noreply.github.com> Date: Sun, 10 Nov 2024 23:43:06 -0500 Subject: [PATCH 2/2] .node-version --- .node-version | 1 + 1 file changed, 1 insertion(+) create mode 100644 .node-version diff --git a/.node-version b/.node-version new file mode 100644 index 0000000000..2bd5a0a98a --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +22