From 0058775ee9cf3d3435ecd93f45b3569d718775dd Mon Sep 17 00:00:00 2001 From: Tim Pearson Date: Tue, 21 Jul 2026 23:33:18 -0400 Subject: [PATCH] ci: run release job on Node 22 so npm@latest install succeeds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The release job installed npm@latest (needed for trusted-publishing, npm >=11.5.1) on Node 20, but npm 12.x requires Node >=22.22 — it failed with EBADENGINE and aborted npm publish + the GitHub Release for every v5.2.x tag (the container image built in a separate job, so Swarm deploys were unaffected, but the npm package and GitHub Releases went stale). Bump the release job to Node 22. Version bump to 5.2.3 cuts a release that validates the fix and finally publishes the accumulated 5.2.x fixes to npm. --- .claude-plugin/plugin.json | 2 +- .github/workflows/release.yml | 7 +++++-- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 1659b66..e097282 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "bookstack-mcp", "description": "BookStack wiki MCP server — search, read, create, and manage documentation", - "version": "5.2.2", + "version": "5.2.3", "author": { "name": "Tim Pearson" }, diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8c51a9e..a164594 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,13 +16,16 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 20 + # Node 22: `npm install -g npm@latest` below pulls npm 12.x, which + # requires Node >= 22.22 — on Node 20 it failed with EBADENGINE and + # aborted the publish (the container image built regardless). + node-version: 22 cache: npm - run: npm ci - run: npm run build - # Trusted publishing (OIDC) requires npm >= 11.5.1; Node 20 ships with npm 10.x + # Trusted publishing (OIDC) requires npm >= 11.5.1; Node ships with npm 10.x - run: npm install -g npm@latest - name: Publish to npm with provenance diff --git a/package-lock.json b/package-lock.json index 37b8308..0e97cb3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bookstack-mcp", - "version": "5.2.2", + "version": "5.2.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "bookstack-mcp", - "version": "5.2.2", + "version": "5.2.3", "license": "MIT", "dependencies": { "@modelcontextprotocol/sdk": "^1.25.3", diff --git a/package.json b/package.json index fa64f9e..fe2a8d7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bookstack-mcp", - "version": "5.2.2", + "version": "5.2.3", "description": "MCP server for BookStack wiki — search, read, create, and manage documentation via AI assistants", "type": "module", "bin": {