fix: harden lazycodex platform publishing

This commit is contained in:
YeonGyu-Kim
2026-05-31 00:42:14 +09:00
parent 3fed03d047
commit bcd9ae9901
6 changed files with 53 additions and 14 deletions
+2 -1
View File
@@ -368,6 +368,7 @@ jobs:
- name: Publish oh-my-opencode-${{ matrix.platform }}
if: steps.check.outputs.skip_opencode != 'true' && steps.download.outcome == 'success'
continue-on-error: true
env:
DIST_TAG: ${{ steps.validate.outputs.dist_tag }}
NPM_CONFIG_PROVENANCE: true
@@ -382,7 +383,7 @@ jobs:
timeout-minutes: 15
- name: Publish oh-my-openagent-${{ matrix.platform }}
if: steps.check.outputs.skip_openagent != 'true' && steps.download.outcome == 'success'
if: always() && steps.check.outputs.skip_openagent != 'true' && steps.download.outcome == 'success'
env:
DIST_TAG: ${{ steps.validate.outputs.dist_tag }}
NPM_CONFIG_PROVENANCE: true
+5 -1
View File
@@ -383,7 +383,11 @@ jobs:
jq --arg omo_version "$OMO_VERSION" '
.name = "lazycodex" |
.version = $omo_version |
.optionalDependencies = (.optionalDependencies | to_entries | map(.value = $omo_version) | from_entries)
.optionalDependencies = (
.optionalDependencies | to_entries |
map(.key = (.key | sub("^oh-my-opencode-"; "oh-my-openagent-")) | .value = $omo_version) |
from_entries
)
' package.json > tmp.json && mv tmp.json package.json
if [ -n "$DIST_TAG" ]; then