Skip to content

Commit a67d09e

Browse files
committed
release: switch npm publish to trusted publishing
1 parent 8908561 commit a67d09e

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v4
1414
- uses: actions/setup-node@v4
1515
with:
16-
node-version: 20
16+
node-version: 24
1717
cache: npm
1818
- run: npm ci
1919
- run: npm run build

.github/workflows/publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
tags:
77
- "v*"
88

9+
permissions:
10+
contents: read
11+
id-token: write
12+
913
jobs:
1014
publish:
1115
runs-on: ubuntu-latest
@@ -14,13 +18,11 @@ jobs:
1418
- uses: actions/checkout@v4
1519
- uses: actions/setup-node@v4
1620
with:
17-
node-version: 20
21+
node-version: 24
1822
registry-url: https://registry.npmjs.org
1923
cache: npm
2024
- run: npm ci
2125
- run: npm run build
2226
- run: npm test
2327
- run: npm run pack:smoke
2428
- run: npm publish --access public
25-
env:
26-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Synthetic Reality Development (SRD) for OpenCode. This package installs global commands, agents, and skills, and registers an npm-loaded OpenCode plugin that nudges teams back toward revenue-critical work after edits.
44

5+
This package is the OpenCode-compatible npm distribution of the upstream SRD framework in [`DojoCodingLabs/srd-framework`](https://github.com/DojoCodingLabs/srd-framework). The upstream project targets Claude Code's plugin marketplace flow, while this repo repackages the same SRD methodology and assets for OpenCode and npm-based installation.
6+
57
## What SRD Is
68

79
SRD is a backwards-from-success product workflow:
@@ -107,6 +109,8 @@ The npm-loaded plugin listens after edit-style tools and shows a throttled SRD r
107109

108110
## Compatibility Notes
109111

112+
- The upstream SRD framework lives in `DojoCodingLabs/srd-framework`; this package exists to make that workflow installable in OpenCode.
113+
- The original Claude plugin is distributed through the plugin marketplace rather than npm; use this package for the npm-published OpenCode-compatible version.
110114
- `srd/claude-directive.yml` remains the canonical machine-readable directive path for existing SRD workflows.
111115
- Packaged references and schemas ship for maintenance and documentation, but runtime prompts are self-contained.
112116
- Claude-only packaging from `.claude-plugin/` is intentionally not migrated.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dojocoding/opencode-srd-framework",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "OpenCode-native SRD framework with global commands, agents, skills, installer CLI, and alignment plugin.",
55
"type": "module",
66
"main": "./dist/index.js",

0 commit comments

Comments
 (0)