Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
8 changes: 4 additions & 4 deletions apps/streaming-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
Loading