mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-01-30 06:22:04 +00:00
fix: sync package.runtime.json version in Docker builds (v2.33.1) (#534)
Docker images were built with stale package.runtime.json (v2.29.5) while npm package was at v2.33.0. This was caused by the build-docker job not syncing the version before building, while publish-npm did. Changes: - Add "Sync runtime version" step to release.yml build-docker job - Add "Sync runtime version" step to docker-build.yml build job - Add "Sync runtime version" step to docker-build.yml build-railway job - Bump version to 2.33.1 to trigger release with fix The sync uses a lightweight Node.js one-liner (no npm install needed) to update package.runtime.json version from package.json before Docker builds. Conceived by Romuald Czlonkowski - www.aiadvisors.pl/en Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
committed by
GitHub
parent
533b105f03
commit
a9c4400a92
22
.github/workflows/docker-build.yml
vendored
22
.github/workflows/docker-build.yml
vendored
@@ -60,6 +60,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
lfs: true
|
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
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
@@ -151,6 +162,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
lfs: true
|
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
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
|||||||
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
@@ -428,6 +428,17 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
echo "✅ Sufficient disk space: ${AVAILABLE_GB}GB available"
|
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
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
- Based on hands-on testing with n8n-mcp-tester agent
|
||||||
- Overall experience rating improved from 4.5/10 to estimated 6/10
|
- 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
|
## [2.14.4] - 2025-09-30
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "n8n-mcp",
|
"name": "n8n-mcp",
|
||||||
"version": "2.33.0",
|
"version": "2.33.1",
|
||||||
"description": "Integration between n8n workflow automation and Model Context Protocol (MCP)",
|
"description": "Integration between n8n workflow automation and Model Context Protocol (MCP)",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "n8n-mcp-runtime",
|
"name": "n8n-mcp-runtime",
|
||||||
"version": "2.29.5",
|
"version": "2.33.1",
|
||||||
"description": "n8n MCP Server Runtime Dependencies Only",
|
"description": "n8n MCP Server Runtime Dependencies Only",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user