diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 4451dab..32ec019 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -268,6 +268,37 @@ jobs: echo "Setting version $VERSION for all libs" npx nx release version "$VERSION" --git-commit=false --git-tag=false + - name: Update demo app dependency versions + if: ${{ inputs.dry_run != true }} + shell: bash + run: | + VERSION="${{ steps.version.outputs.version }}" + echo "Updating @enclave-vm/* dependencies in apps to $VERSION" + for pkg in apps/*/package.json; do + [ -f "$pkg" ] || continue + # Update any @enclave-vm/* dependency versions + node -e " + const fs = require('fs'); + const p = JSON.parse(fs.readFileSync('$pkg', 'utf8')); + let changed = false; + for (const section of ['dependencies', 'devDependencies', 'peerDependencies']) { + if (!p[section]) continue; + for (const [name, ver] of Object.entries(p[section])) { + if (name.startsWith('@enclave-vm/') && ver !== '$VERSION') { + p[section][name] = '$VERSION'; + changed = true; + } + } + } + if (changed) { + fs.writeFileSync('$pkg', JSON.stringify(p, null, 2) + '\n'); + console.log('Updated: $pkg'); + } else { + console.log('No changes: $pkg'); + } + " + done + - name: Commit version bump if: ${{ inputs.dry_run != true }} run: | diff --git a/apps/streaming-demo/package.json b/apps/streaming-demo/package.json index 77a88e4..a46b797 100644 --- a/apps/streaming-demo/package.json +++ b/apps/streaming-demo/package.json @@ -11,10 +11,10 @@ "runtime": "ts-node src/runtime-server.ts" }, "dependencies": { - "@enclave-vm/broker": "2.10.0", - "@enclave-vm/client": "2.10.0", - "@enclave-vm/types": "2.10.0", - "@enclave-vm/core": "2.10.0", + "@enclave-vm/broker": "2.11.0", + "@enclave-vm/client": "2.11.0", + "@enclave-vm/types": "2.11.0", + "@enclave-vm/core": "2.11.0", "express": "^4.21.0", "zod": "^3.24.0" },