From 7b424ca5cc175dde7ebc0c15e4c8e83bc867374f Mon Sep 17 00:00:00 2001 From: per1234 Date: Sat, 14 Jun 2025 05:35:34 -0700 Subject: [PATCH] Bump standardized Node.js version to 22 npm package-based tools are used for various development and maintenance operations for this project and the templates. In order to ensure these operations work as expected, the a specific major version of Node.js is configured for use by the infrastructure systems and collaborators. For the sake of stability, a version of Node.js that has LTS status should be used. Previously, Node.js 16 was used. This version is EOL. The current active LTS version is 22, so that is the new standard version of Node.js for use in this project and the projects where the templates are installed. --- package-lock.json | 2 +- package.json | 2 +- workflow-templates/check-action-metadata-task.md | 2 +- workflow-templates/check-javascript-task.md | 2 +- workflow-templates/check-markdown-task.md | 2 +- workflow-templates/check-npm-dependencies-task.md | 2 +- workflow-templates/check-npm-task.md | 2 +- workflow-templates/check-prettier-formatting-task.md | 2 +- workflow-templates/check-taskfiles.md | 2 +- workflow-templates/check-toc-task.md | 2 +- workflow-templates/check-workflows-task.md | 2 +- workflow-templates/sync-labels-npm.md | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5e42b2c5..0865ada3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,7 @@ "prettier": "^3.5.3" }, "engines": { - "node": "16.x" + "node": "22.x" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index 0a197724..5f93fc59 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,6 @@ "js-yaml": "^4.1.0" }, "engines": { - "node": "16.x" + "node": "22.x" } } diff --git a/workflow-templates/check-action-metadata-task.md b/workflow-templates/check-action-metadata-task.md index fce85ad8..e0292636 100644 --- a/workflow-templates/check-action-metadata-task.md +++ b/workflow-templates/check-action-metadata-task.md @@ -46,7 +46,7 @@ Add the following to [`/.gitignore`](https://git-scm.com/docs/gitignore): Configure the version of [**Node.js**](https://nodejs.org) used for development of the project by running the following command from a terminal in the project repository folder: ```text -npm pkg set engines.node=16.x +npm pkg set engines.node=22.x ``` ### Readme badge diff --git a/workflow-templates/check-javascript-task.md b/workflow-templates/check-javascript-task.md index 6deeb141..300a4356 100644 --- a/workflow-templates/check-javascript-task.md +++ b/workflow-templates/check-javascript-task.md @@ -52,7 +52,7 @@ Add the following to [`/.gitignore`](https://git-scm.com/docs/gitignore): Configure the version of [**Node.js**](https://nodejs.org) used for development of the project by running the following command from a terminal in the project repository folder: ```text -npm pkg set engines.node=16.x +npm pkg set engines.node=22.x ``` ### Readme badge diff --git a/workflow-templates/check-markdown-task.md b/workflow-templates/check-markdown-task.md index 5393b353..dec7e8ec 100644 --- a/workflow-templates/check-markdown-task.md +++ b/workflow-templates/check-markdown-task.md @@ -49,7 +49,7 @@ Commit the resulting changes to the `package.json` and `package-lock.json` files Configure the version of [**Node.js**](https://nodejs.org) used for development of the project by running the following command from a terminal in the project repository folder: ```text -npm pkg set engines.node=16.x +npm pkg set engines.node=22.x ``` #### Taskfile diff --git a/workflow-templates/check-npm-dependencies-task.md b/workflow-templates/check-npm-dependencies-task.md index bc1aa5ce..0b6643ea 100644 --- a/workflow-templates/check-npm-dependencies-task.md +++ b/workflow-templates/check-npm-dependencies-task.md @@ -97,7 +97,7 @@ ignore: | Configure the version of [**Node.js**](https://nodejs.org) used for development of the project by running the following command from a terminal in the project repository folder: ```text -npm pkg set engines.node=16.x +npm pkg set engines.node=22.x ``` ### Documentation diff --git a/workflow-templates/check-npm-task.md b/workflow-templates/check-npm-task.md index 40860040..e610f035 100644 --- a/workflow-templates/check-npm-task.md +++ b/workflow-templates/check-npm-task.md @@ -26,7 +26,7 @@ Install the [check-npm-task.yml](check-npm-task.yml) GitHub Actions workflow to Configure the version of [**Node.js**](https://nodejs.org) used for development of the project by running the following command from a terminal in the project repository folder: ```text -npm pkg set engines.node=16.x +npm pkg set engines.node=22.x ``` If the project contains **npm**-managed projects (i.e., a folder containing a `package.json` file) in paths other than the root of the repository, run the command again from each of those paths. diff --git a/workflow-templates/check-prettier-formatting-task.md b/workflow-templates/check-prettier-formatting-task.md index 8ed0a9ad..2460afad 100644 --- a/workflow-templates/check-prettier-formatting-task.md +++ b/workflow-templates/check-prettier-formatting-task.md @@ -46,7 +46,7 @@ Commit the resulting changes to the `package.json` and `package-lock.json` files Configure the version of [**Node.js**](https://nodejs.org) used for development of the project by running the following command from a terminal in the project repository folder: ```text -npm pkg set engines.node=16.x +npm pkg set engines.node=22.x ``` #### Prettier diff --git a/workflow-templates/check-taskfiles.md b/workflow-templates/check-taskfiles.md index deb20ac4..76a0b3ee 100644 --- a/workflow-templates/check-taskfiles.md +++ b/workflow-templates/check-taskfiles.md @@ -27,7 +27,7 @@ Commit the resulting changes to the `package.json` and `package-lock.json` files Configure the version of [**Node.js**](https://nodejs.org) used for development of the project by running the following command from a terminal in the project repository folder: ```text -npm pkg set engines.node=16.x +npm pkg set engines.node=22.x ``` #### Workflow diff --git a/workflow-templates/check-toc-task.md b/workflow-templates/check-toc-task.md index 413762f9..b610841f 100644 --- a/workflow-templates/check-toc-task.md +++ b/workflow-templates/check-toc-task.md @@ -38,7 +38,7 @@ Commit the resulting changes to the `package.json` and `package-lock.json` files Configure the version of [**Node.js**](https://nodejs.org) used for development of the project by running the following command from a terminal in the project repository folder: ```text -npm pkg set engines.node=16.x +npm pkg set engines.node=22.x ``` #### Workflow diff --git a/workflow-templates/check-workflows-task.md b/workflow-templates/check-workflows-task.md index e7a8ef9f..15a8fe03 100644 --- a/workflow-templates/check-workflows-task.md +++ b/workflow-templates/check-workflows-task.md @@ -46,7 +46,7 @@ Add the following to [`/.gitignore`](https://git-scm.com/docs/gitignore): Configure the version of [**Node.js**](https://nodejs.org) used for development of the project by running the following command from a terminal in the project repository folder: ```text -npm pkg set engines.node=16.x +npm pkg set engines.node=22.x ``` ### Readme badge diff --git a/workflow-templates/sync-labels-npm.md b/workflow-templates/sync-labels-npm.md index c76ff054..451b62e7 100644 --- a/workflow-templates/sync-labels-npm.md +++ b/workflow-templates/sync-labels-npm.md @@ -90,7 +90,7 @@ Add the following to `.gitignore`: Configure the version of [**Node.js**](https://nodejs.org) used for development of the project by running the following command from a terminal in the project repository folder: ```text -npm pkg set engines.node=16.x +npm pkg set engines.node=22.x ``` ### Readme badge