From bcdb94c93b2d46414c7aed968c1afae01355cc23 Mon Sep 17 00:00:00 2001 From: G <41178744+maonakamoto@users.noreply.github.com> Date: Mon, 3 Aug 2026 10:53:37 +0200 Subject: [PATCH] chore: declare Node 22 once, in .nvmrc (#125) 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 9f07668..f5ae9c2 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 d1e5788..21d89b4 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 3c03207..2bd5a0a 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -18 +22