The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
ci: gate releases on opencode payload verification
Affaan Mustafa4967dad08caf
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex e4e93e7ca..cea5f6ca4 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -18,6 +18,17 @@ jobs:with:fetch-depth: 0+ - name: Setup Node.js+ uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0+ with:+ node-version: '20.x'++ - name: Install dependencies+ run: npm ci++ - name: Verify OpenCode package payload+ run: node tests/scripts/build-opencode.test.js+- name: Validate version tagrun: |if ! [[ "${REF_NAME}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; thendiff --git a/.github/workflows/reusable-release.yml b/.github/workflows/reusable-release.ymlindex 2a7b5786b..9fd37991d 100644--- a/.github/workflows/reusable-release.yml+++ b/.github/workflows/reusable-release.yml@@ -27,6 +27,17 @@ jobs:with:fetch-depth: 0+ - name: Setup Node.js+ uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0+ with:+ node-version: '20.x'++ - name: Install dependencies+ run: npm ci++ - name: Verify OpenCode package payload+ run: node tests/scripts/build-opencode.test.js+- name: Validate version tagenv:INPUT_TAG: ${{ inputs.tag }}diff --git a/scripts/release.sh b/scripts/release.shindex c36b985c1..f9c1ebb7d 100755--- a/scripts/release.sh+++ b/scripts/release.sh@@ -58,6 +58,13 @@ if [[ -z "$OLD_VERSION" ]]; thenfiecho "Bumping version: $OLD_VERSION -> $VERSION"+# Build and verify the packaged OpenCode payload before mutating any manifest+# versions or creating a tag. This keeps a broken npm artifact from being+# released via the manual script path.+echo "Verifying OpenCode build and npm pack payload..."+node scripts/build-opencode.js+node tests/scripts/build-opencode.test.js+update_version() {local file="$1"local pattern="$2"