fix(publish): force push tags in republish mode

This commit is contained in:
justsisyphus 2026-01-22 11:04:59 +09:00
parent 8b820c5374
commit ba756d7533

View File

@ -162,7 +162,7 @@ jobs:
git add package.json assets/oh-my-opencode.schema.json packages/*/package.json || true
git diff --cached --quiet || git commit -m "release: v${{ steps.version.outputs.version }}"
git tag -f "v${{ steps.version.outputs.version }}"
git push origin --tags
git push origin --tags --force
git push origin HEAD || echo "Branch push failed (non-critical)"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}