# Socket Release > Pon en marcha la publicación de SocketDev (npm, crates.io, GitHub releases, tap de Homebrew) en un repo copiando el kit socket-release desde sauce y ejecutando su bootstrap. Fuente: https://skillsagentes.com/skills/socketdev/sauce/socket-release Markdown: https://skillsagentes.com/skills/socketdev/sauce/socket-release.md Repositorio: https://github.com/SocketDev/sauce Autor: SocketDev Licencia: MIT Actualizado: hace 2 meses Coste de contexto: 76 tok instalada, 1.5k tok al activarse, 1.5k tok con todos los archivos del bundle Bundle: 1 archivo, 6 KB Permisos que pide: ninguno declarado ## Instalación Un skill son archivos markdown: los mismos archivos valen para cualquier agente y lo único que cambia es el directorio de destino, es decir la bandera `--agent`. Añade `-g` para instalarlo en todos los proyectos de la máquina. ```bash # Claude Code npx -y skills add SocketDev/sauce --skill socket-release --agent claude-code # Cursor npx -y skills add SocketDev/sauce --skill socket-release --agent cursor # Codex npx -y skills add SocketDev/sauce --skill socket-release --agent codex # Gemini CLI npx -y skills add SocketDev/sauce --skill socket-release --agent gemini # Windsurf npx -y skills add SocketDev/sauce --skill socket-release --agent windsurf # Cline npx -y skills add SocketDev/sauce --skill socket-release --agent cline ``` ## Qué hace - Clona el kit socket-release desde sauce e instala el bootstrap de publicación en el repo (npm, crates.io, GitHub releases, Homebrew tap) - Ejecuta el bootstrap a través de reserva de nombre, entornos de GitHub, npm trusted publisher y endurecimiento del acceso de publicación - Detiene la ejecución en cada 🖐 HUMAN GATE (consentimiento de reserva, 2FA web de npm, promoción de placeholder, fallback 403) y espera - Verifica una configuración existente re-ejecutando `bootstrap.mts verify` ## Cuándo usarla - Vas a poner en marcha la publicación en un repo que nunca ha publicado - Vas a añadir un nuevo canal (npm, crates.io, GitHub releases o un tap de Homebrew) a un repo que ya publica en otros - Vas a cortar un release una vez la publicación está lista, usando el modelo staged-then-approve - Quieres recuperar o verificar una configuración existente de publicación ## Qué la activa - "Configura la publicación en npm y GitHub releases para este repo" - "Añade el canal de crates.io a este repo que ya publica en npm" - "Verifica que el trusted publisher y los entornos siguen conformes" - "Quiero cortar un release con el modelo staged-then-approve" ## Antes de instalar - Requiere clonar el kit desde el repo SocketDev/sauce, fijar pnpm add -D @socketsecurity/lib@6.5.2, @socketsecurity/sdk@4.1.3 y playwright-core@1.61.1, y un operador humano disponible para los gates. - makes network requests ## Archivos - SKILL.md — 6 KB ## SKILL.md Reproducido tal cual desde SocketDev/sauce bajo MIT. Esta sección es el documento original y está en inglés. # Socket Release Setup Install the socket-release kit into the current repo and stand publishing up. Everything destructive is dry-run by default; the bootstrap prints the exact next command after every run, and every human moment renders as a 🖐 HUMAN GATE - stop and show it, never improvise around it. ## When to Use - Standing up publishing in a repo that has never released - reserving the package name, wiring the npm trusted publisher, restricting GitHub environments, and tightening publishing access to staged-only. - Adding a new channel (npm, crates.io, GitHub releases, or a Homebrew tap) to a repo that already publishes on the others. - Cutting a release once publishing is stood up: stage the artifact, then clear the human-gated approve before anything becomes public. - Any time you want the staged-then-approve safety model - a verified, hashed artifact held behind a human gate - instead of a one-shot publish. - Recovering or verifying an existing setup: re-run the bootstrap `verify` to confirm the trusted publisher, environments, and access are still conforming. Each channel has its own subskill; this top-level skill installs the kit, runs the bootstrap, and points you at the right channel subskill for the actual publish. ## Steps
Clone the kit, install it, pin its deps, then bootstrap through the gates 1. **Get the kit source.** Shallow-clone sauce to the canonical clone home: ```bash git clone --depth=1 --single-branch https://github.com/SocketDev/sauce.git ~/.socket/_wheelhouse/repo-clones/SocketDev-sauce ``` Done when: `~/.socket/_wheelhouse/repo-clones/SocketDev-sauce/release-kit/install.mts` exists. 2. **Install the kit.** Plan first, then apply with the channels this repo publishes on (`npm`, `crates`, `github-release`, `brew`): ```bash node ~/.socket/_wheelhouse/repo-clones/SocketDev-sauce/release-kit/install.mts --target . --channels npm,github-release node ~/.socket/_wheelhouse/repo-clones/SocketDev-sauce/release-kit/install.mts --target . --channels npm,github-release --apply ``` Done when: the same command with `--verify` exits 0. 3. **Pin the kit dependencies.** The payload imports plain specifiers; add the exact pins: ```bash pnpm add -D @socketsecurity/lib@6.5.2 @socketsecurity/sdk@4.1.3 playwright-core@1.61.1 ``` Done when: `node scripts/socket-release/bootstrap.mts preflight` shows the `kit-deps-resolvable` check passing. 4. **Bootstrap.** Run the plan, then follow `nextCommand` and the gates: ```bash node scripts/socket-release/bootstrap.mts node scripts/socket-release/bootstrap.mts --apply ``` The run stops at human gates (reserve-name consent, npm web-2FA, staged-placeholder promote, GitHub 403 fallback) - render the gate and wait. Done when: `node scripts/socket-release/bootstrap.mts verify` exits 0 and reports the stood-up detail (trusted publisher conforming, environments restricted, publishing access staged-only).
## Browser law Playwright browser law (verbatim, non-negotiable): - Launch ONLY via openNpmBrowserSession (scripts/socket-release/publish-infra/npm/browser-session.mts) on the durable staged-browser profile that module owns under ~/.config. - The launch shape is channel + chromiumSandbox: true + headless + the two sanctioned ignoreDefaultArgs entries, and nothing else - never an args array, never a sandbox-disabling flag. - Login is NEVER scripted: the operator signs in once in the headed window; no password, OTP, or cookie passes through the process. - All npm browser tools share the ONE durable profile so a single sign-in covers every tool. - npm auth is decided by the /-/whoami BODY on the website origin, never the HTTP status. - A human-verification challenge PAUSES the run for the operator with a visible countdown and is never retried blindly. ## Operating the channels - **npm staged publishing**: see [npm-publish](npm-publish/SKILL.md) - **GitHub releases + ORDER RULE**: see [github-release](github-release/SKILL.md) - **crates.io staged model**: see [cargo-publish](cargo-publish/SKILL.md) - **Homebrew tap bumps**: see [brew-publish](brew-publish/SKILL.md) ## Tips - Start every destructive run with `--dry-run` and read the plan before you add `--apply`; nothing writes to a registry until you drop the dry-run. - Respect the human gates: when a 🖐 HUMAN GATE prints (reserve-name consent, npm web-2FA, staged-placeholder promote, GitHub 403 fallback), render it verbatim and wait - never script the sign-in or improvise past the gate. - Let the bootstrap run its eight steps in canonical order - `preflight`, `placeholder`, `npm-access-permissive`, `github-env`, `staged-config`, `trusted-publisher`, `npm-access-staged-only`, `verify` - and follow the `nextCommand` it prints rather than jumping ahead; the order brackets the irreversible placeholder publish between permissive and staged-only access. - Pin the kit dependencies to exact versions before bootstrapping; the `kit-deps-resolvable` preflight check fails fast when they drift. - Prefer the staged path over `--direct`: staged gives you a verified, hashed artifact and a server-side rescue before anything goes public, and on crates.io the publish is permanent (yank-only), so the approve gate is the last stop before it is forever. - Re-run `bootstrap.mts verify` after any change to confirm the trusted publisher, environments, and publishing access are still conforming. ## Dónde encaja - Categoría: [DevOps e infraestructura](https://skillsagentes.com/categorias/devops-infraestructura.md) — Despliegues, contenedores, IaC y flujos de gestión de incidentes. - Creador: [SocketDev](https://skillsagentes.com/creators/socketdev.md) — 15 skills en el directorio - [Todas las skills](https://skillsagentes.com/skills.md) - [Ranking de instalaciones](https://skillsagentes.com/ranking.md) ## Otras skills del mismo repositorio - [Socket Connect](https://skillsagentes.com/skills/socketdev/sauce/socket-connect.md): Conecta tu agente a Socket iniciando sesión por el navegador, sin copiar ni pegar una API key. Incluye el servidor Socket MCP alojado (OAuth), lista tus organizaciones y enlaza el Socket CLI para escaneos. - [Socket Fix](https://skillsagentes.com/skills/socketdev/sauce/socket-fix.md): Arregla problemas de seguridad en dependencias: escanea y corrige todo (requiere /socket-scan) o repara un paquete concreto, orquestando los subskills de limpieza, reemplazo, parcheo y actualización. - [Socket Dep Upgrade](https://skillsagentes.com/skills/socketdev/sauce/socket-dep-upgrade.md): Usa `socket fix` para encontrar y actualizar dependencias vulnerables, y luego corrige los cambios incompatibles en el código. Actualizaciones auditadas en seguridad con migración de código automatizada. - [Socket Inspect](https://skillsagentes.com/skills/socketdev/sauce/socket-inspect.md): Investiga un paquete antes de depender de él: extrae señales de Socket (scores, alertas, malware, CVEs, riesgo de cadena de suministro), revisa socket.dev, evalúa alternativas y muestra parches disponibles. - [Socket Scan](https://skillsagentes.com/skills/socketdev/sauce/socket-scan.md): Ejecuta un escaneo de dependencias con Socket CLI: pide login o cuenta si no estás autenticado, ofrece un SBOM local si lo rechazas, y añade reachability y auditoría de licencias para enterprise. ## Skills relacionadas - [Brew Publish](https://skillsagentes.com/skills/socketdev/sauce/brew-publish.md): Gestiona el flujo de la tap de Homebrew de socket-release: fórmula con descarga binaria, bumps ligados a releases y verificación de sha256 contra el checksums.txt del release. - [Cargo Publish](https://skillsagentes.com/skills/socketdev/sauce/cargo-publish.md): Gestiona el flujo de publicación en crates.io: modelo cargo staged (dry-run por defecto), trusted publishing vía OIDC bajo el entorno cargo-publish, espera de propagación de índice y rollback con yank. - [Github Release](https://skillsagentes.com/skills/socketdev/sauce/github-release.md): Corta, verifica y repara releases inmutables de GitHub con el kit socket-release: la ORDER RULE de resolubilidad del registro, el corte en tres pasos draft-upload-undraft, checksums.txt y reparación de gaps de tag. - [Npm Publish](https://skillsagentes.com/skills/socketdev/sauce/npm-publish.md): Gestiona el flujo completo de socket-release para npm: bootstrap del paquete, publicación staged, promoción con --approve, backfill de versiones y rollback con deprecate.​ - [Socket Setup](https://skillsagentes.com/skills/socketdev/sauce/socket-setup.md): Configura Socket: conecta tu cuenta mediante inicio de sesión en el navegador, instala el CLI, configura políticas y tokens de CI, y prepara el CI/CD para los modos firewall o patch en GitHub, GitLab, Bitbucket y otros sistemas. --- Skills Agentes · [Índice de páginas en markdown](https://skillsagentes.com/sitemap.md) · [Inicio](https://skillsagentes.com/index.md)