Compare commits

...
Author SHA1 Message Date
Emeriko 53a834fe6d ci: publish via npm trusted publishing (OIDC), drop NPM_TOKEN
Authenticate the release workflow through GitHub OIDC instead of a long-lived
npm token: no secret to leak or rotate, provenance attached automatically.
Upgrade npm on the runner since OIDC publishing needs npm >= 11.5.1 (Node 22
ships npm 10).
2026-06-24 02:56:32 +02:00
DietrichGebert e368c48c52 feat: scope npm package as @dietrichgebert/ponytail (#280)
Publish under a scope you own outright instead of opencode-ponytail (which
sits on a third-party npm account). Matches the GitHub handle and repo.
publishConfig.access is already public, which scoped public packages need.
2026-06-24 02:50:42 +02:00
4 changed files with 8 additions and 7 deletions
+5 -4
View File
@@ -17,7 +17,8 @@ jobs:
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
node-version: '22' node-version: '22'
registry-url: 'https://registry.npmjs.org' # Trusted publishing (OIDC) needs npm >= 11.5.1; Node 22 ships npm 10.
- run: npm publish --provenance --access public - run: npm install -g npm@latest
env: # No token: id-token: write above lets npm authenticate via OIDC, and
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # provenance is attached automatically. access set in publishConfig.
- run: npm publish
+1 -1
View File
@@ -7,7 +7,7 @@
// source of truth. // source of truth.
// //
// OpenCode loads this as a server plugin — add it to your opencode.json: // OpenCode loads this as a server plugin — add it to your opencode.json:
// { "plugin": ["opencode-ponytail"] } // { "plugin": ["@dietrichgebert/ponytail"] }
import { createRequire } from 'module'; import { createRequire } from 'module';
import fs from 'fs'; import fs from 'fs';
+1 -1
View File
@@ -157,7 +157,7 @@ pi install git:github.com/DietrichGebert/ponytail
Add to `opencode.json`: Add to `opencode.json`:
```json ```json
{ "plugin": ["opencode-ponytail"] } { "plugin": ["@dietrichgebert/ponytail"] }
``` ```
Run from a checkout instead (the plugin reuses `hooks/` and `skills/`): Run from a checkout instead (the plugin reuses `hooks/` and `skills/`):
+1 -1
View File
@@ -1,5 +1,5 @@
{ {
"name": "opencode-ponytail", "name": "@dietrichgebert/ponytail",
"version": "4.8.1", "version": "4.8.1",
"description": "Lazy senior dev mode for AI agents. The best code is the code you never wrote.", "description": "Lazy senior dev mode for AI agents. The best code is the code you never wrote.",
"keywords": ["opencode-plugin", "opencode", "ponytail", "pi-package", "pi", "skills"], "keywords": ["opencode-plugin", "opencode", "ponytail", "pi-package", "pi", "skills"],