Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/opencode-excalidraw-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
runs-on: blacksmith-2vcpu-ubuntu-2404
outputs:
releases_created: ${{ steps.release_please.outputs.releases_created }}
prs_created: ${{ steps.release_please.outputs.prs_created == 'true' && 'true' || 'false' }}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -39,7 +38,7 @@ jobs:
dispatch-publish:
needs: process
runs-on: blacksmith-2vcpu-ubuntu-2404
if: needs.process.outputs.releases_created == 'true' || needs.process.outputs.prs_created == 'true'
if: needs.process.result == 'success'
steps:
- name: Dispatch publish for releases
if: needs.process.outputs.releases_created == 'true'
Expand All @@ -50,7 +49,7 @@ jobs:
client-payload: '{"tag":"latest"}'

- name: Dispatch publish for prerelease
if: needs.process.outputs.prs_created == 'true'
if: needs.process.outputs.releases_created != 'true'
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ Notes:
- `npx playwright install`
- Override API base with `SKETCHI_API_URL`.
- Tools exposed: `diagram_from_prompt`, `diagram_tweak`, `diagram_restructure`, `diagram_to_png`, `diagram_grade`.
- Publish channels: `next` is used for pre-release iteration testing; `latest` publishes when the plugin release PR is merged.
- Install and use from any repo:
```bash
npm i @sketchi-app/opencode-excalidraw
Expand Down
13 changes: 13 additions & 0 deletions packages/opencode-excalidraw/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,19 @@ Optional env-based auth fallback (used when OpenCode auth is not configured):
- Fast package tests: `bun run test`
- Optional live integration scenario (calls Sketchi API and renders PNG): `bun run test:integration`

## Release Channels

Plugin publishing uses two channels:

- `next`: published for plugin iterations on `main` when a formal release was not created.
- `latest`: published only when release-please creates an actual release (after merging the release PR).

Practical flow:

1. Keep the release PR open while validating behavior via real OpenCode install/upgrade cycles.
2. Consume `next` builds for validation.
3. Merge the release PR when ready to promote that version to `latest`.

## Links

- npm: https://www.npmjs.com/package/@sketchi-app/opencode-excalidraw
Expand Down
Loading