Files
hyperframes/.github/workflows/catalog-publish.yml
T
Xuanru Li 7bd6b9daf8 fix(ci): publishing workflows run only for main (#7875)
* fix(ci): publishing workflows run only for main

A workflow_dispatch on any branch ran the ClawHub sync with CLAWHUB_TOKEN and the
MCP registry publish with an OIDC token, publishing that branch's skills/ or
server.json under heygen-com. Each publishing job now skips unless github.ref is
refs/heads/main and checks out the triggering commit without stored credentials.

* test: split the main-only publish check into small checks

* test: close main-only publishing policy gaps

* refactor: separate publishing push filter classification
2026-11-16 01:06:52 +00:00

44 lines
1.2 KiB
YAML

name: Publish catalog
on:
push:
branches: [main]
workflow_dispatch:
permissions:
actions: write
contents: write
pull-requests: write
concurrency:
group: catalog-publish
cancel-in-progress: false
env:
HYPERFRAMES_NO_TELEMETRY: "1"
jobs:
publish:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
ref: main
fetch-depth: 0
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
- run: bash scripts/ci/install-workspace-dependencies.sh
- run: bun run --filter '@hyperframes/{parsers,lint,studio-server}' build
- run: bun run --cwd packages/core build
- run: bun run --cwd packages/core build:hyperframes-runtime
- run: bun run check:catalog-drift
- name: Refresh the standing publish PR
run: node scripts/publish-catalog.mjs
env:
GH_TOKEN: ${{ github.token }}