Upgrade Node.js to v20.19.2 for security enhancements (#4212)

This commit upgrades Node.js version from v20.18.1 to v20.19.2.

This version incorporates security patches that address known
vulnerabilities, improving the overall security posture.

Co-authored-by: Peter Dave Hello <hsu@peterdavehello.org>
This commit is contained in:
Matt Rubens 2025-06-01 17:02:44 -04:00 committed by GitHub
parent 03754f615d
commit 7cd89edaa4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 9 additions and 9 deletions

View file

@ -9,7 +9,7 @@ on:
env: env:
REPO_PATH: ${{ github.repository }} REPO_PATH: ${{ github.repository }}
GIT_REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || 'main' }} GIT_REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || 'main' }}
NODE_VERSION: 20.18.1 NODE_VERSION: 20.19.2
PNPM_VERSION: 10.8.1 PNPM_VERSION: 10.8.1
jobs: jobs:

View file

@ -9,7 +9,7 @@ on:
branches: [main] branches: [main]
env: env:
NODE_VERSION: 20.18.1 NODE_VERSION: 20.19.2
PNPM_VERSION: 10.8.1 PNPM_VERSION: 10.8.1
jobs: jobs:

View file

@ -7,7 +7,7 @@ on:
env: env:
GIT_REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || 'main' }} GIT_REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || 'main' }}
NODE_VERSION: 20.18.1 NODE_VERSION: 20.19.2
PNPM_VERSION: 10.8.1 PNPM_VERSION: 10.8.1
jobs: jobs:

View file

@ -9,7 +9,7 @@ on:
workflow_dispatch: # Allows manual triggering. workflow_dispatch: # Allows manual triggering.
env: env:
NODE_VERSION: 20.18.1 NODE_VERSION: 20.19.2
PNPM_VERSION: 10.8.1 PNPM_VERSION: 10.8.1
jobs: jobs:

View file

@ -7,7 +7,7 @@ on:
workflow_dispatch: # Allows manual triggering workflow_dispatch: # Allows manual triggering
env: env:
NODE_VERSION: 20.18.1 NODE_VERSION: 20.19.2
PNPM_VERSION: 10.8.1 PNPM_VERSION: 10.8.1
jobs: jobs:

2
.nvmrc
View file

@ -1 +1 @@
20.19.2 v20.19.2

View file

@ -176,8 +176,8 @@ for i in "${!options[@]}"; do
case "${plugin}" in case "${plugin}" in
"nodejs") "nodejs")
if ! command -v node &>/dev/null; then if ! command -v node &>/dev/null; then
asdf install nodejs 20.18.1 || exit 1 asdf install nodejs 20.19.2 || exit 1
asdf set nodejs 20.18.1 || exit 1 asdf set nodejs 20.19.2 || exit 1
NODE_VERSION=$(node --version) NODE_VERSION=$(node --version)
echo "✅ Node.js is installed ($NODE_VERSION)" echo "✅ Node.js is installed ($NODE_VERSION)"
else else
@ -185,7 +185,7 @@ for i in "${!options[@]}"; do
echo "✅ Node.js is installed ($NODE_VERSION)" echo "✅ Node.js is installed ($NODE_VERSION)"
fi fi
if [[ $(node --version) != "v20.18.1" ]]; then if [[ $(node --version) != "v20.19.2" ]]; then
NODE_VERSION=$(node --version) NODE_VERSION=$(node --version)
echo "🚨 You have the wrong version of node installed ($NODE_VERSION)." echo "🚨 You have the wrong version of node installed ($NODE_VERSION)."
echo "💡 If you are using nvm then run 'nvm install' to install the version specified by the repo's .nvmrc." echo "💡 If you are using nvm then run 'nvm install' to install the version specified by the repo's .nvmrc."