From 9b8aca45f9d7c6eb85bfe9bdaa4c30fc6eadcd9a Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Wed, 18 Mar 2026 02:15:15 +0900 Subject: [PATCH] fix(release): set version when publishing oh-my-openagent The publish step was updating name and optionalDependencies but not version, causing npm to try publishing the base package.json version (3.11.0) instead of the release version (3.12.0). Error was: 'You cannot publish over the previously published versions: 3.11.0' --- .github/workflows/publish.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0e74dc05a..32f44fbe3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -233,11 +233,10 @@ jobs: run: | VERSION="${{ steps.version.outputs.version }}" - # Update package name to oh-my-openagent - jq '.name = "oh-my-openagent"' package.json > tmp.json && mv tmp.json package.json - - # Update optionalDependencies to use oh-my-openagent naming + # Update package name, version, and optionalDependencies for oh-my-openagent jq --arg v "$VERSION" ' + .name = "oh-my-openagent" | + .version = $v | .optionalDependencies = ( .optionalDependencies | to_entries | map(.key = (.key | sub("^oh-my-opencode-"; "oh-my-openagent-")) | .value = $v) |