cxs is a local-first CLI for searching Codex session logs. It is designed for progressive retrieval: find the right session first, then read
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(release): GH Actions 自动 npm publish

加 publish-npm job,跟 binary build/release 解耦并行。条件同前
(tag push v* 或 workflow_dispatch),用 NPM_TOKEN repo secret 授权。
publish 经由 prepublishOnly hook 自动跑 npm run build (esbuild bundle),
不复用 binary build 的产物。

setup-node 必须在 setup-bun 之前 — 让 node binary 与 .npmrc auth
token 在 PATH 优先,避免 bun 自带 node shim 抢走 npm publish。

前置:repo Settings → Secrets and variables → Actions 加 NPM_TOKEN,
值是 granular access token,scope 限 @act0r/cxs (或 @act0r/*),
permission read+write,且勾选 "Allow publishing without 2FA"。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Entire-Checkpoint: 724c115e6d42

cat 1a2e6670 da65caf8

+31
+31
.github/workflows/release.yml
··· 92 92 generate_release_notes: true 93 93 files: dist/cxs-* 94 94 fail_on_unmatched_files: true 95 + 96 + publish-npm: 97 + name: publish to npm 98 + runs-on: ubuntu-latest 99 + # Decoupled from binary build: npm publish has its own prepublishOnly 100 + # build (esbuild bundle) and runs in parallel. NPM_TOKEN must be a 101 + # granular access token with "Allow publishing without 2FA" enabled. 102 + steps: 103 + - name: Checkout 104 + uses: actions/checkout@v4 105 + 106 + # setup-node before setup-bun so that node + the .npmrc with the auth 107 + # token win on PATH for `npm publish`. 108 + - name: Setup Node 109 + uses: actions/setup-node@v4 110 + with: 111 + node-version: "22" 112 + registry-url: "https://registry.npmjs.org" 113 + 114 + - name: Setup Bun 115 + uses: oven-sh/setup-bun@v2 116 + with: 117 + bun-version: latest 118 + 119 + - name: Install dependencies 120 + run: bun install --frozen-lockfile 121 + 122 + - name: Publish 123 + run: npm publish 124 + env: 125 + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}