From 155cbc29f2e131c12e8451f8a17c881326b8dd21 Mon Sep 17 00:00:00 2001 From: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com> Date: Mon, 3 Aug 2026 10:49:09 +0200 Subject: [PATCH] chore: declare Node 22 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 +- .github/workflows/deploy.yml | 2 +- .nvmrc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f07668f..f5ae9c2a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: '22' + node-version-file: .nvmrc cache: npm - run: npm ci diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d1e57883..21d89b43 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,5 +18,5 @@ jobs: uses: maonakamoto/fleetcrown/.github/workflows/selfhost-deploy.yml@main with: app: botsmann - node-version: '22' + node-version-file: .nvmrc secrets: inherit diff --git a/.nvmrc b/.nvmrc index 3c032078..2bd5a0a9 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -18 +22