chore(http-recorder): disable release automation (#31160)

This commit is contained in:
Kit Langton 2026-06-06 20:10:28 -04:00 committed by GitHub
commit effd27b239
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 16 additions and 270 deletions

View file

@ -1,26 +0,0 @@
#!/usr/bin/env bun
import { $ } from "bun"
import { fileURLToPath } from "node:url"
import { pack } from "./pack.js"
import { verifyPackage } from "./verify-package.js"
const dir = fileURLToPath(new URL("..", import.meta.url))
process.chdir(dir)
const published = async (name: string, version: string) =>
(await $`npm view ${name}@${version} version`.nothrow()).exitCode === 0
// oxlint-disable-next-line typescript-eslint/no-unsafe-type-assertion -- package.json is validated by the package schema and build checks.
const pkg = JSON.parse(await Bun.file("package.json").text()) as { readonly name: string; readonly version: string }
if (await published(pkg.name, pkg.version)) {
console.log(`already published ${pkg.name}@${pkg.version}`)
} else {
const archive = await pack()
try {
await verifyPackage(archive)
await $`npm publish ${archive} --tag beta --access public --provenance`
} finally {
await Bun.file(archive).delete()
}
}

View file

@ -8,6 +8,10 @@ const keybinds: Record<string, string> = {
"model.variant.cycle": "mod+shift+m",
}
export function formatKeybind(config: string) {
return config === "none" ? "" : config
}
export function useCommand() {
return {
options: [],