From bcbe36e009c1a0cf6a5f309016e6a262cc40c859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20Desv=C3=A9?= Date: Mon, 29 Jan 2024 09:32:00 +0100 Subject: [PATCH] Update node version in package.json, actions and docs --- .../workflows/check-action-metadata-task.yml | 2 +- .../workflows/check-npm-dependencies-task.yml | 2 +- .../check-prettier-formatting-task.yml | 2 +- .github/workflows/check-typescript-task.yml | 2 +- .github/workflows/test-typescript-task.yml | 2 +- CONTRIBUTING.md | 2 +- package-lock.json | 36 ++++++++++++++----- package.json | 2 +- 8 files changed, 34 insertions(+), 16 deletions(-) diff --git a/.github/workflows/check-action-metadata-task.yml b/.github/workflows/check-action-metadata-task.yml index e79fd3ca..71bc00af 100644 --- a/.github/workflows/check-action-metadata-task.yml +++ b/.github/workflows/check-action-metadata-task.yml @@ -2,7 +2,7 @@ name: Check Action Metadata env: # See: https://github.com/actions/setup-node/#readme - NODE_VERSION: 16.x + NODE_VERSION: 20.x # See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows on: diff --git a/.github/workflows/check-npm-dependencies-task.yml b/.github/workflows/check-npm-dependencies-task.yml index bfae8263..13003f6b 100644 --- a/.github/workflows/check-npm-dependencies-task.yml +++ b/.github/workflows/check-npm-dependencies-task.yml @@ -3,7 +3,7 @@ name: Check npm Dependencies env: # See: https://github.com/actions/setup-node/#readme - NODE_VERSION: 16.x + NODE_VERSION: 20.x # See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows on: diff --git a/.github/workflows/check-prettier-formatting-task.yml b/.github/workflows/check-prettier-formatting-task.yml index 9e20e47a..43984670 100644 --- a/.github/workflows/check-prettier-formatting-task.yml +++ b/.github/workflows/check-prettier-formatting-task.yml @@ -3,7 +3,7 @@ name: Check Prettier Formatting env: # See: https://github.com/actions/setup-node/#readme - NODE_VERSION: 16.x + NODE_VERSION: 20.x # See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows on: diff --git a/.github/workflows/check-typescript-task.yml b/.github/workflows/check-typescript-task.yml index 172404fe..370ae2ad 100644 --- a/.github/workflows/check-typescript-task.yml +++ b/.github/workflows/check-typescript-task.yml @@ -2,7 +2,7 @@ name: Check TypeScript env: # See: https://github.com/actions/setup-node/#readme - NODE_VERSION: 16.x + NODE_VERSION: 20.x # See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows on: diff --git a/.github/workflows/test-typescript-task.yml b/.github/workflows/test-typescript-task.yml index dadb717f..546ac166 100644 --- a/.github/workflows/test-typescript-task.yml +++ b/.github/workflows/test-typescript-task.yml @@ -2,7 +2,7 @@ name: Test TypeScript env: # See: https://github.com/actions/setup-node/#readme - NODE_VERSION: 16.x + NODE_VERSION: 20.x on: push: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 747ecf3c..bf065504 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,7 +16,7 @@ https://taskfile.dev/#/installation Follow the installation instructions here:
https://nodejs.dev/en/download -Node.js 16.x is used for development of this project. [nvm](https://github.com/nvm-sh/nvm) is recommended to easily switch between Node.js versions. +Node.js 20.x is used for development of this project. [nvm](https://github.com/nvm-sh/nvm) is recommended to easily switch between Node.js versions. #### Extras diff --git a/package-lock.json b/package-lock.json index faac734d..859c4549 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "devDependencies": { "@actions/io": "^1.1.3", "@types/jest": "^28.1.8", - "@types/node": "^16.18.76", + "@types/node": "^20.11.10", "@types/semver": "^7.5.6", "@typescript-eslint/eslint-plugin": "^6.19.1", "@typescript-eslint/parser": "^6.19.1", @@ -1633,10 +1633,13 @@ "dev": true }, "node_modules/@types/node": { - "version": "16.18.76", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.76.tgz", - "integrity": "sha512-/GsO2uv1Z6R42lBr59dtem56gVF/yHKQaScggwU+gLU6DXE25sDmOar4c4IfWb3h+X/7OYZznPOFk7oGF3jQSA==", - "dev": true + "version": "20.11.10", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.10.tgz", + "integrity": "sha512-rZEfe/hJSGYmdfX9tvcPMYeYPW2sNl50nsw4jZmRcaG0HIAb0WYEpsB05GOb53vjqpyE9GUhlDQ4jLSoB5q9kg==", + "dev": true, + "dependencies": { + "undici-types": "~5.26.4" + } }, "node_modules/@types/normalize-package-data": { "version": "2.4.1", @@ -9075,6 +9078,12 @@ "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.1.tgz", "integrity": "sha512-hzSoAVtJF+3ZtiFX0VgfFPHEDRm7Y/QPjGyNo4TVdnDTdft3tr8hEkD25a1jC+TjTuE7tkHGKkhwCgs9dgBB2g==" }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, "node_modules/uri-js": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", @@ -10546,10 +10555,13 @@ "dev": true }, "@types/node": { - "version": "16.18.76", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.76.tgz", - "integrity": "sha512-/GsO2uv1Z6R42lBr59dtem56gVF/yHKQaScggwU+gLU6DXE25sDmOar4c4IfWb3h+X/7OYZznPOFk7oGF3jQSA==", - "dev": true + "version": "20.11.10", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.10.tgz", + "integrity": "sha512-rZEfe/hJSGYmdfX9tvcPMYeYPW2sNl50nsw4jZmRcaG0HIAb0WYEpsB05GOb53vjqpyE9GUhlDQ4jLSoB5q9kg==", + "dev": true, + "requires": { + "undici-types": "~5.26.4" + } }, "@types/normalize-package-data": { "version": "2.4.1", @@ -16003,6 +16015,12 @@ "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.1.tgz", "integrity": "sha512-hzSoAVtJF+3ZtiFX0VgfFPHEDRm7Y/QPjGyNo4TVdnDTdft3tr8hEkD25a1jC+TjTuE7tkHGKkhwCgs9dgBB2g==" }, + "undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, "uri-js": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", diff --git a/package.json b/package.json index 78fa4a81..b64dda0a 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "devDependencies": { "@actions/io": "^1.1.3", "@types/jest": "^28.1.8", - "@types/node": "^16.18.76", + "@types/node": "^20.11.10", "@types/semver": "^7.5.6", "@typescript-eslint/eslint-plugin": "^6.19.1", "@typescript-eslint/parser": "^6.19.1",