Update to Node 26 LTS (#12753)

This commit is contained in:
Tom Moor
2026-06-21 15:31:00 -04:00
committed by GitHub
parent de294525cb
commit ebaaedb10e
6 changed files with 9 additions and 11 deletions
+2 -2
View File
@@ -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
+3 -5
View File
@@ -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
+1 -1
View File
@@ -1 +1 @@
24
26
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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",