From ebaaedb10eb1f25fe279834de0403e5dc61bb17d Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 21 Jun 2026 15:31:00 -0400 Subject: [PATCH] Update to Node 26 LTS (#12753) --- .github/actions/install/action.yml | 4 ++-- .github/workflows/update-node.yml | 8 +++----- .nvmrc | 2 +- Dockerfile | 2 +- Dockerfile.base | 2 +- package.json | 2 +- 6 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/actions/install/action.yml b/.github/actions/install/action.yml index 00f6010a15..3cd311d501 100644 --- a/.github/actions/install/action.yml +++ b/.github/actions/install/action.yml @@ -6,10 +6,10 @@ runs: - name: Enable Corepack shell: bash run: corepack enable - - name: Use Node.js 24.x + - name: Use Node.js 26.x uses: actions/setup-node@v5 with: - node-version: 24.x + node-version: 26.x cache: "yarn" - name: Install dependencies shell: bash diff --git a/.github/workflows/update-node.yml b/.github/workflows/update-node.yml index b87a089b64..1c17340d86 100644 --- a/.github/workflows/update-node.yml +++ b/.github/workflows/update-node.yml @@ -64,11 +64,9 @@ jobs: # .nvmrc echo "$LATEST_MAJOR" > .nvmrc - # CI workflow: step name, node-version, and cache keys - sed -i "s/Use Node.js ${CURRENT_MAJOR}.x/Use Node.js ${LATEST_MAJOR}.x/g" .github/workflows/ci.yml - sed -i "s/node-version: ${CURRENT_MAJOR}.x/node-version: ${LATEST_MAJOR}.x/g" .github/workflows/ci.yml - # Update cache keys: replace node-modules-[optional old version] with new version - sed -i -E "s/node-modules-([0-9]+\.x-)?/node-modules-${LATEST_MAJOR}.x-/g" .github/workflows/ci.yml + # CI install action: step name and node-version + sed -i "s/Use Node.js ${CURRENT_MAJOR}.x/Use Node.js ${LATEST_MAJOR}.x/g" .github/actions/install/action.yml + sed -i "s/node-version: ${CURRENT_MAJOR}.x/node-version: ${LATEST_MAJOR}.x/g" .github/actions/install/action.yml # package.json engines field: append new major version sed -i "s/\"node\": \"\(.*\)\"/\"node\": \"\1 || ${LATEST_MAJOR}\"/" package.json diff --git a/.nvmrc b/.nvmrc index a45fd52cc5..6f4247a625 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -24 +26 diff --git a/Dockerfile b/Dockerfile index 210f3b8cf2..e4fe7ae69c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ ARG APP_PATH WORKDIR $APP_PATH # --- -FROM node:24.16.0-slim AS runner +FROM node:26.3.0-slim AS runner LABEL org.opencontainers.image.source="https://github.com/outline/outline" diff --git a/Dockerfile.base b/Dockerfile.base index 21517f0dd3..6489d9f7a8 100644 --- a/Dockerfile.base +++ b/Dockerfile.base @@ -1,5 +1,5 @@ ARG APP_PATH=/opt/outline -FROM node:24.16.0 AS deps +FROM node:26.3.0 AS deps ARG APP_PATH WORKDIR $APP_PATH diff --git a/package.json b/package.json index 9c2692b579..c09e2b82c2 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "url": "https://github.com/sponsors/outline" }, "engines": { - "node": ">=20.12 <21 || 22 || 24 <24.17.0 || >24.17.0 <25" + "node": ">=20.12 <21 || 22 || 24 <24.17.0 || 26 <26.3.1" }, "repository": { "type": "git",