mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-07-19 01:24:19 +00:00
* docs: bump documented Node.js minimum to 25 Etherpad is moving its supported Node.js floor to >= 25 (CI matrix is already pinned to 25 across all workflows on the node25-corepack-pnpm11 work). Sync the user-facing documentation so the install instructions, requirements section, and plugin metadata example all reflect the new minimum instead of Node 22 / 12.17. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore: require Node.js >= 25 (engines, installers, Dockerfile, snap, CI) #7747 added Node 25 *support* but left the floor at Node 22. This commit completes the cutover so the runtime requirement matches the documentation bumped in the previous commit. - package.json: engines.node ">=22.13.0" → ">=25.0.0" - bin/functions.sh, bin/installer.sh, bin/installer.ps1: REQUIRED_NODE bumped to 25 (controls the error message users see when they invoke the installer or pnpm scripts on an older Node) - Dockerfile: base image node:22-alpine → node:25-alpine (×2). Corepack comment updated: Node 25 no longer ships corepack at all, so we install it from npm rather than refreshing a stale signing-key list - snap/snapcraft.yaml: pinned NODE_VERSION 22.22.2 → 25.9.0 and the surrounding design notes rewritten to reflect Node 25 instead of 22 - .github/workflows/*.yml: matrix dropped from [22, 24, 25] to just [25] (anything older now fails engines anyway). Stale comments in build-and-deploy-docs.yml referencing vite 8's 22.12 floor cleaned up - bin/plugins/lib/npmpublish.yml: setup-node 22 → 25 so the plugin template propagated to every ether/* plugin matches the new minimum Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(docker): install pnpm directly on Node 25 (no corepack) node:25-alpine doesn't ship corepack but does pre-install yarn at /usr/local/bin/yarn, so `npm install -g corepack@latest` fails with EEXIST trying to register its yarn shim. Per #7747, end-users install pnpm via plain `npm install -g pnpm` on Node 25 — use the same flow in the Dockerfile (and remove the unused yarn binary so it doesn't sit on PATH inside the image). Drops COREPACK_HOME and the related issue-7687 cache-sharing tweak since there's no corepack shim to share. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
96 lines
3.1 KiB
YAML
96 lines
3.1 KiB
YAML
# Workflow for building and deploying the VitePress site to GitHub Pages.
|
|
# Build runs on every push to develop and on every PR that touches docs (so
|
|
# a build regression is caught at review time instead of breaking develop
|
|
# after merge — see #7640). Deploy runs only on push: the github-pages
|
|
# environment has protection rules that reject PR refs, and a PR build
|
|
# never produced an artifact to deploy anyway.
|
|
name: Deploy Docs to GitHub Pages
|
|
|
|
on:
|
|
push:
|
|
branches: ["develop"]
|
|
paths:
|
|
- doc/**
|
|
- .github/workflows/build-and-deploy-docs.yml
|
|
pull_request:
|
|
paths:
|
|
- doc/**
|
|
- .github/workflows/build-and-deploy-docs.yml
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
packages: read
|
|
|
|
# Allow only one concurrent deployment, skipping runs queued between the run
|
|
# in-progress and latest queued. Do NOT cancel in-progress runs — production
|
|
# deployments are allowed to complete.
|
|
concurrency:
|
|
group: "pages"
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
- uses: actions/cache@v5
|
|
name: Cache pnpm store
|
|
with:
|
|
path: ~/.pnpm-store
|
|
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-pnpm-store-
|
|
- uses: actions/cache@v5
|
|
name: Cache vitepress build
|
|
with:
|
|
path: doc/.vitepress/cache
|
|
key: ${{ runner.os }}-vitepress-${{ hashFiles('doc/**/*.md', 'doc/.vitepress/config.*') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-vitepress-
|
|
- uses: pnpm/action-setup@v6
|
|
name: Install pnpm
|
|
with:
|
|
run_install: false
|
|
# Pin Node so the build does not silently fall back to whatever the
|
|
# runner image ships with. The repo declares engines.node >=25.0.0.
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: 25
|
|
cache: pnpm
|
|
- name: Setup Pages
|
|
if: github.event_name == 'push'
|
|
uses: actions/configure-pages@v6
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
- name: Build app
|
|
working-directory: doc
|
|
run: pnpm run docs:build
|
|
env:
|
|
GITHUB_PAGES: ${{ github.event_name == 'push' && 'true' || '' }}
|
|
COMMIT_REF: ${{ github.sha }}
|
|
- name: Upload artifact
|
|
if: github.event_name == 'push'
|
|
uses: actions/upload-pages-artifact@v5
|
|
with:
|
|
path: './doc/.vitepress/dist'
|
|
|
|
# Deploy to GitHub Pages on push to develop only. Kept as a separate job
|
|
# because the github-pages environment's protection rules reject any
|
|
# non-develop ref (including PR merge refs), which used to fail the entire
|
|
# workflow at job-creation time before any build step could run.
|
|
deploy:
|
|
needs: build
|
|
if: github.event_name == 'push'
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Deploy to GitHub Pages
|
|
id: deployment
|
|
uses: actions/deploy-pages@v5
|