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:
Romuald Członkowski
2026-01-12 10:25:58 +01:00
committed by GitHub
parent 533b105f03
commit a9c4400a92
5 changed files with 50 additions and 7 deletions

View File

@@ -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