From b8fd9ce6a62f97838ec443156c34258941329548 Mon Sep 17 00:00:00 2001 From: Precious Oritsedere Date: Wed, 4 Nov 2026 12:03:59 +0000 Subject: [PATCH] chore(security): upgrade Node to 24.22.1 for CVE-2026-111497 --- .github/workflows/CD.yaml | 2 +- .github/workflows/CI.yaml | 2 +- .github/workflows/lint.yml | 2 +- .nvmrc | 1 + package.json | 5 ++++- 5 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 .nvmrc diff --git a/.github/workflows/CD.yaml b/.github/workflows/CD.yaml index e606d1c..45ddb84 100644 --- a/.github/workflows/CD.yaml +++ b/.github/workflows/CD.yaml @@ -17,7 +17,7 @@ jobs: - name: Set up Node.js version uses: actions/setup-node@v5 with: - node-version: 22 + node-version-file: .nvmrc - name: Install Vercel CLI run: npm install --global vercel@latest diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index a7fe5d0..d8f313d 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -28,7 +28,7 @@ jobs: - name: Set up Node.js version uses: actions/setup-node@v5 with: - node-version: 22 + node-version-file: .nvmrc - name: Install Vercel CLI run: npm install --global vercel@latest diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 98fa0fc..30d68c3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/setup-node@v5 with: - node-version: 22 + node-version-file: .nvmrc cache: npm - run: npm ci diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..ce62013 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +24.22.1 diff --git a/package.json b/package.json index dc03b05..2d97883 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,9 @@ "version": "0.1.0", "private": true, "license": "MIT OR Apache-2.0", + "engines": { + "node": ">=24.22.1" + }, "scripts": { "dev": "next dev --port=3001", "build": "npm run build:next", @@ -45,4 +48,4 @@ "tailwindcss": "^4", "typescript": "^5" } -} +} \ No newline at end of file