From c48e7500427b1393a0cf5117925e0e51e11cdad4 Mon Sep 17 00:00:00 2001 From: anandpant Date: Sun, 1 Mar 2026 23:38:03 -0600 Subject: [PATCH] ci: publish opencode next on every iteration --- .github/workflows/opencode-excalidraw-release.yml | 5 ++--- README.md | 1 + packages/opencode-excalidraw/README.md | 13 +++++++++++++ 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/opencode-excalidraw-release.yml b/.github/workflows/opencode-excalidraw-release.yml index 593eeb1..5a7bd8f 100644 --- a/.github/workflows/opencode-excalidraw-release.yml +++ b/.github/workflows/opencode-excalidraw-release.yml @@ -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: @@ -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' @@ -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 }} diff --git a/README.md b/README.md index d8bc757..827dbdf 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/packages/opencode-excalidraw/README.md b/packages/opencode-excalidraw/README.md index 10e4b7b..70e165a 100644 --- a/packages/opencode-excalidraw/README.md +++ b/packages/opencode-excalidraw/README.md @@ -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