diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 732ca08..70a58ad 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -53,13 +53,24 @@ jobs: permissions: contents: read packages: write - + steps: - name: Checkout repository uses: actions/checkout@v4 with: lfs: true - + + - name: Sync runtime version + run: | + VERSION=$(node -p "require('./package.json').version") + node -e " + const fs = require('fs'); + const pkg = JSON.parse(fs.readFileSync('package.runtime.json')); + pkg.version = '$VERSION'; + fs.writeFileSync('package.runtime.json', JSON.stringify(pkg, null, 2) + '\n'); + " + echo "✅ Synced package.runtime.json to version $VERSION" + - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -144,13 +155,24 @@ jobs: permissions: contents: read packages: write - + steps: - name: Checkout repository uses: actions/checkout@v4 with: lfs: true - + + - name: Sync runtime version + run: | + VERSION=$(node -p "require('./package.json').version") + node -e " + const fs = require('fs'); + const pkg = JSON.parse(fs.readFileSync('package.runtime.json')); + pkg.version = '$VERSION'; + fs.writeFileSync('package.runtime.json', JSON.stringify(pkg, null, 2) + '\n'); + " + echo "✅ Synced package.runtime.json to version $VERSION" + - name: Set up QEMU uses: docker/setup-qemu-action@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c28c143..169a65d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -427,7 +427,18 @@ jobs: exit 1 fi echo "✅ Sufficient disk space: ${AVAILABLE_GB}GB available" - + + - name: Sync runtime version for Docker + run: | + VERSION=$(node -p "require('./package.json').version") + node -e " + const fs = require('fs'); + const pkg = JSON.parse(fs.readFileSync('package.runtime.json')); + pkg.version = '$VERSION'; + fs.writeFileSync('package.runtime.json', JSON.stringify(pkg, null, 2) + '\n'); + " + echo "✅ Synced package.runtime.json to version $VERSION" + - name: Set up QEMU uses: docker/setup-qemu-action@v3 diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 1e114f0..19dd027 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -55,6 +55,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Based on hands-on testing with n8n-mcp-tester agent - Overall experience rating improved from 4.5/10 to estimated 6/10 +## [2.33.1] - 2026-01-12 + +### Fixed +- **Docker image version mismatch bug**: Docker images were built with stale `package.runtime.json` (v2.29.5) while npm package was at v2.33.0 + - Root cause: `build-docker` job in `release.yml` did not sync `package.runtime.json` version before building + - The `publish-npm` job synced the version, but both jobs ran in parallel, so Docker got the stale version + - Added "Sync runtime version" step to `release.yml` `build-docker` job + - Added "Sync runtime version" step to `docker-build.yml` `build` and `build-railway` jobs + - All Docker builds now sync `package.runtime.json` version from `package.json` before building + ## [2.14.4] - 2025-09-30 ### Added diff --git a/package.json b/package.json index e3dfc70..0ed7c2e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "n8n-mcp", - "version": "2.33.0", + "version": "2.33.1", "description": "Integration between n8n workflow automation and Model Context Protocol (MCP)", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/package.runtime.json b/package.runtime.json index 2799988..3203419 100644 --- a/package.runtime.json +++ b/package.runtime.json @@ -1,6 +1,6 @@ { "name": "n8n-mcp-runtime", - "version": "2.29.5", + "version": "2.33.1", "description": "n8n MCP Server Runtime Dependencies Only", "private": true, "dependencies": {