Files
wehub-resource-sync 426e9eeabd
Benchmark Bridge Tests / benchmark (bunx @biomejs/biome check packages/lifeops-bench/src, benchmark-lint) (push) Waiting to run
Benchmark Bridge Tests / benchmark (bunx vitest run --config packages/lifeops-bench/vitest.config.ts --root packages/lifeops-bench --passWithNoTests, benchmark-tests) (push) Waiting to run
Build Agent Image / build-and-push (push) Waiting to run
Chat shell gestures / Chat shell gesture + parity e2e (push) Waiting to run
Cloud Gateway Discord / Test (push) Waiting to run
Cloud Gateway Webhook / Test (push) Waiting to run
Cloud Tests / lint-and-types (push) Waiting to run
Cloud Tests / unit-tests (push) Waiting to run
Cloud Tests / integration-tests (push) Waiting to run
Cloud Tests / e2e-tests (push) Blocked by required conditions
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
Deploy Apps Worker (Product 2) / Determine environment (push) Waiting to run
Deploy Apps Worker (Product 2) / Deploy apps worker to apps-control host (${{ needs.determine-env.outputs.environment }}) (push) Blocked by required conditions
Deploy Eliza Provisioning Worker / Determine environment (push) Waiting to run
Deploy Eliza Provisioning Worker / Deploy worker to Hetzner host (${{ needs.determine-env.outputs.environment }} @ ${{ needs.determine-env.outputs.deployment_sha }}) (push) Blocked by required conditions
Dev Smoke / Classify changed paths (push) Waiting to run
Dev Smoke / bun run dev onboarding chat (push) Blocked by required conditions
Dev Smoke / Vite HMR dependency-level smoke (push) Blocked by required conditions
Electrobun Submodule Guard / electrobun gitlink is fetchable (push) Waiting to run
Publish @elizaos/example-code / check_npm (push) Waiting to run
Publish @elizaos/example-code / publish_npm (push) Blocked by required conditions
Publish @elizaos/plugin-elizacloud / verify_version (push) Waiting to run
Publish @elizaos/plugin-elizacloud / publish_npm (push) Blocked by required conditions
Sandbox Live Smoke / Sandbox live smoke (push) Waiting to run
Snap Build & Test / Build Snap (amd64) (push) Waiting to run
Snap Build & Test / Build Snap (arm64) (push) Waiting to run
supply-chain / sbom (push) Waiting to run
supply-chain / vulnerability-scan (push) Waiting to run
Build, Push & Deploy to Phala Cloud / build-and-push (push) Waiting to run
Test Packaging / Validate Packaging Configs (push) Waiting to run
Test Packaging / PyPI on Python ${{ matrix.python }} (push) Waiting to run
Test Packaging / Pack & Test JS Tarballs (push) Waiting to run
Test Packaging / elizaos CLI global-install smoke (node + bun) (push) Waiting to run
UI Fixture E2E / ui-fixture-e2e (push) Waiting to run
UI Fixture E2E / fixture-e2e (push) Waiting to run
UI Story Gate / story-gate (push) Waiting to run
vault-ci / test (macos-latest) (push) Waiting to run
vault-ci / test (ubuntu-latest) (push) Waiting to run
vault-ci / test (windows-latest) (push) Waiting to run
vault-ci / app-core wiring tests (push) Waiting to run
verify-patches / verify patches/CHECKSUMS.sha256 (push) Waiting to run
Voice Benchmark Smoke / voice-emotion fixture smoke (push) Waiting to run
Voice Benchmark Smoke / voiceagentbench fixture smoke (push) Waiting to run
Voice Benchmark Smoke / voicebench-quality unit smoke (push) Waiting to run
Voice Benchmark Smoke / voicebench TypeScript unit (no audio) (push) Waiting to run
Voice Benchmark Smoke / voice bench smoke summary (push) Blocked by required conditions
Windows CI / windows ([bun run --cwd packages/app-core test bun run --cwd packages/elizaos test bun run --cwd packages/cloud/shared test], app-and-cli) (push) Waiting to run
Windows CI / windows ([bun run --cwd packages/scenario-runner test bun run --cwd packages/vault test bun run --cwd packages/security test bun run --cwd plugins/plugin-coding-tools test], framework-packages) (push) Waiting to run
Windows CI / windows ([bun run --cwd plugins/plugin-elizacloud test bun run --cwd plugins/plugin-discord test bun run --cwd plugins/plugin-anthropic test bun run --cwd plugins/plugin-openai test bun run --cwd plugins/plugin-app-control test bun run --cwd plugins/pl… (push) Waiting to run
Windows CI / windows ([node packages/scripts/run-turbo.mjs run build --filter=@elizaos/core --filter=@elizaos/shared --filter=@elizaos/agent --concurrency=4 node packages/scripts/run-bash-linux-only.mjs scripts/verify-riscv64-buildpaths.sh node packages/scripts/run… (push) Waiting to run
Windows CI / windows ([node packages/scripts/run-turbo.mjs run typecheck --filter=@elizaos/core --filter=@elizaos/shared --filter=@elizaos/cloud-shared --concurrency=4 bun run --cwd packages/core test bun run --cwd packages/shared test], core-runtime, 75) (push) Waiting to run
Test Packaging / Build & Test PyPI Package (push) Waiting to run
Voice Workbench / headless workbench (mocked backends) (push) Has been cancelled
Voice Workbench / real acoustic lane (nightly, provisioned only) (push) Has been cancelled
ci / test (push) Has been cancelled
ci / lint-and-format (push) Has been cancelled
ci / build (push) Has been cancelled
ci / dev-startup (push) Has been cancelled
gitleaks / gitleaks (push) Has been cancelled
Markdown Links / Relative Markdown Links (push) Has been cancelled
Quality (Extended) / Homepage Build (PR smoke) (push) Has been cancelled
Quality (Extended) / Comment-only diff guard (push) Has been cancelled
Quality (Extended) / Format + Type Safety Ratchet (push) Has been cancelled
Quality (Extended) / Develop Gate (secret scan + UI determinism) (push) Has been cancelled
Quality (Extended) / Develop Gate (lint) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:43:05 +08:00

138 lines
5.6 KiB
YAML

# Publishes @elizaos/example-code (npm) — the elizaOS-owned "eliza-code" coding
# agent (runtime + coding tools + orchestrator; the opencode replacement, #10059).
# The Cloud coding-container runner installs this package to run eliza-code, so it
# must exist on npm before the runner image can bundle it.
#
# Scoped, single-package publish (modeled on publish-plugin-elizacloud.yml): it
# publishes ONLY @elizaos/example-code, never triggers a monorepo release. The
# guard is an npm-existence check (not a git-version diff), so it publishes the
# first-ever version correctly, is idempotent (a re-run when the version already
# exists is a no-op), and never republishes an existing version.
name: Publish @elizaos/example-code
on:
push:
branches: [main, develop]
paths:
- "packages/examples/code/**"
- ".github/workflows/publish-example-code.yml"
workflow_dispatch:
concurrency:
group: publish-example-code-${{ github.ref }}
cancel-in-progress: false
# Default to least privilege. Override per-job where needed.
permissions:
contents: read
jobs:
check_npm:
runs-on: ${{ fromJSON(vars.HETZNER_FLEET_ONLINE == 'false' && '["ubuntu-24.04"]' || '["self-hosted","hetzner-robot"]') }}
outputs:
should_publish: ${{ steps.check.outputs.should_publish }}
version: ${{ steps.check.outputs.version }}
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
with:
filter: blob:none
- name: Decide whether to publish (version-new AND deps installable)
id: check
run: |
set -euo pipefail
PKG_JSON="packages/examples/code/package.json"
NAME=$(jq -r .name "$PKG_JSON")
VERSION=$(jq -r .version "$PKG_JSON")
echo "Package: ${NAME}@${VERSION}"
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
# (1) Publish only if this exact name@version is NOT already published.
if npm view "${NAME}@${VERSION}" version >/dev/null 2>&1; then
echo "Already published — skipping."
echo "should_publish=false" >> "$GITHUB_OUTPUT"
exit 0
fi
# (2) Preflight: `npm publish` rewrites this package's `workspace:*`
# @elizaos/* deps to `^<local monorepo version>`. If those versions are
# not on npm, the published package would be UNINSTALLABLE. Refuse to
# publish until every @elizaos workspace dep resolves at its local
# version — otherwise the monorepo 2.x beta line must be released first.
missing=""
while read -r dep localver; do
[ -z "$dep" ] && continue
if ! npm view "${dep}@${localver}" version >/dev/null 2>&1; then
missing="${missing} ${dep}@${localver}"
fi
done < <(
jq -r '.dependencies | to_entries[]
| select(.key|startswith("@elizaos/"))
| select(.value|startswith("workspace:"))
| .key' "$PKG_JSON" |
while read -r dep; do
short="${dep#@elizaos/}"
for base in packages plugins; do
f="$base/$short/package.json"
if [ -f "$f" ]; then echo "$dep $(jq -r .version "$f")"; break; fi
done
done
)
if [ -n "$missing" ]; then
echo "::warning::Skipping publish — @elizaos deps not on npm at the required version(s):${missing}. Release the monorepo 2.x line first (see #10059)."
echo "should_publish=false" >> "$GITHUB_OUTPUT"
else
echo "Version is new and all @elizaos deps resolve on npm — will publish."
echo "should_publish=true" >> "$GITHUB_OUTPUT"
fi
publish_npm:
needs: check_npm
if: needs.check_npm.outputs.should_publish == 'true'
runs-on: ${{ fromJSON(vars.HETZNER_FLEET_ONLINE == 'false' && '["ubuntu-24.04"]' || '["self-hosted","hetzner-robot"]') }}
permissions:
contents: write
id-token: write # npm OIDC trusted publishing (SOC2 CC9.2)
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
with:
fetch-depth: 0
filter: blob:none
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
with:
bun-version: canary
- name: Install and build
working-directory: packages/examples/code
run: |
bun install
bun run build
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version: "24"
registry-url: "https://registry.npmjs.org"
- name: Publish to npm
# Publishes under the `beta` dist-tag because the version is a
# pre-release (2.0.0-beta.x) — it must NOT hijack `@latest`. The Cloud
# runner pins the exact version, so the tag is for hygiene, not resolution.
# Auth: prefer npm OIDC (id-token: write); NPM_TOKEN is the fallback.
working-directory: packages/examples/code
run: npm publish --tag beta --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: "true"
- name: Create git tag
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag -a "example-code-v${{ needs.check_npm.outputs.version }}" \
-m "example-code v${{ needs.check_npm.outputs.version }}" || true
git push origin "example-code-v${{ needs.check_npm.outputs.version }}" || true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}