From 7ba58cd4cef9112512f20716ac6659fae761d00d Mon Sep 17 00:00:00 2001 From: GCHQDeveloper581 <63102987+GCHQDeveloper581@users.noreply.github.com> Date: Thu, 12 Feb 2026 09:39:15 +0000 Subject: [PATCH] Fix npm publish - Run "npm ci" and "npm run node" under node 18 then switch to node 24.5 (#2192) Fixes a problem where some generated files were not included in the npm package as they hadn't been built. --- .github/workflows/releases.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index 81fd7385e..ef397a166 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -105,6 +105,18 @@ jobs: - uses: actions/checkout@v6 - name: Set node version + uses: actions/setup-node@v6 + with: + node-version: 18 + registry-url: "https://registry.npmjs.org" + + - name: Install + run: npm ci + + - name: Create machine generated files + run: npm run node + + - name: Reset node version ready for publish uses: actions/setup-node@v6 with: node-version: ^24.5