From 661042bd02ee84858440c9732ca284af7d6402cb Mon Sep 17 00:00:00 2001 From: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com> Date: Mon, 3 Aug 2026 10:48:43 +0200 Subject: [PATCH] chore: declare Node 18 once, in .nvmrc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CI and the deploy pipeline each picked their own Node major, so a build could ship from a toolchain CI never verified — npm 10 and 11 disagree about optional platform deps, which failed 'npm ci' on a lockfile the other npm wrote. One declaration both sides read. Co-Authored-By: Claude Opus 5 --- .github/workflows/ci.yml | 2 +- .nvmrc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .nvmrc diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 92dd9804..68cc5ed6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: # Node 18: contentlayer (unmaintained) crashes on exit under Node 20+ # (ERR_INVALID_ARG_TYPE in clipanion) even though it generates docs # fine. The old deploy workflow pinned 18 for the same reason. - node-version: 18 + node-version-file: .nvmrc cache: npm cache-dependency-path: frontend/package-lock.json diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..3c032078 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +18