From 8a939bdd428c3e6b535a26b705ee661f0ba3c708 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Fri, 20 Dec 2024 02:42:28 +0900 Subject: [PATCH] Fix nodejs version with respecting the runs.using Revert following commits - 2e3c15b181ea8d65fc6ea9582b60f54981b569b9 - Part of 7c33447f79af0e7fbef775ac86560bb0a42d388a Prevent similar troubles with following changes - Add ignore entry for dependabot config - Restrict engines.node in package.json --- .github/dependabot.yml | 4 ++++ .node-version | 2 +- package-lock.json | 22 ++++++++++++---------- package.json | 4 ++-- 4 files changed, 19 insertions(+), 13 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 742ec57df..d275346fe 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -14,6 +14,10 @@ updates: directory: / schedule: interval: weekly + ignore: + - dependency-name: '@types/node' + update-types: + - 'version-update:semver-major' groups: npm-development: dependency-type: development diff --git a/.node-version b/.node-version index 9944ce633..d4b7699d3 100644 --- a/.node-version +++ b/.node-version @@ -1 +1 @@ -21.6.2 +20.18.1 diff --git a/package-lock.json b/package-lock.json index 40fd6fb9b..6ae8d8646 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "@github/local-action": "^2.2.1", "@jest/globals": "^29.7.0", "@types/jest": "^29.5.14", - "@types/node": "^22.10.2", + "@types/node": "^20.17.10", "@typescript-eslint/eslint-plugin": "^8.18.0", "@typescript-eslint/parser": "^8.18.0", "@vercel/ncc": "^0.38.3", @@ -31,7 +31,7 @@ "typescript": "^5.7.2" }, "engines": { - "node": ">=21" + "node": "20.x" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -1984,12 +1984,13 @@ } }, "node_modules/@types/node": { - "version": "22.10.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.2.tgz", - "integrity": "sha512-Xxr6BBRCAOQixvonOye19wnzyDiUtTeqldOOmj3CkeblonbccA12PFwlufvRdrpjXxqnmUaeiU5EOA+7s5diUQ==", + "version": "20.17.10", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.17.10.tgz", + "integrity": "sha512-/jrvh5h6NXhEauFFexRin69nA0uHJ5gwk4iDivp/DeoEua3uwCUto6PC86IpRITBOs4+6i2I56K5x5b6WYGXHA==", "dev": true, + "license": "MIT", "dependencies": { - "undici-types": "~6.20.0" + "undici-types": "~6.19.2" } }, "node_modules/@types/stack-utils": { @@ -6088,10 +6089,11 @@ } }, "node_modules/undici-types": { - "version": "6.20.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", - "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", - "dev": true + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "dev": true, + "license": "MIT" }, "node_modules/universal-user-agent": { "version": "7.0.2", diff --git a/package.json b/package.json index 275b2bdc9..24df31281 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ ".": "./dist/index.js" }, "engines": { - "node": ">=21" + "node": "20.x" }, "scripts": { "bundle": "npm run format:write && npm run package", @@ -73,7 +73,7 @@ "@github/local-action": "^2.2.1", "@jest/globals": "^29.7.0", "@types/jest": "^29.5.14", - "@types/node": "^22.10.2", + "@types/node": "^20.17.10", "@typescript-eslint/eslint-plugin": "^8.18.0", "@typescript-eslint/parser": "^8.18.0", "@vercel/ncc": "^0.38.3",