From fb837db90d7727c3510e389e681ad3b8f08781e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pe=C3=AFo=20Thibault?= Date: Thu, 26 Mar 2026 12:44:27 +0100 Subject: [PATCH] fix(publish): restore version commit-back to dev after npm release --- .github/workflows/publish.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8a6f6e50d..4d2394d9f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -216,6 +216,19 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} NPM_CONFIG_PROVENANCE: true + - name: Commit version bump + if: steps.check.outputs.skip != 'true' + run: | + git config user.email "github-actions[bot]@users.noreply.github.com" + git config user.name "github-actions[bot]" + git add package.json packages/*/package.json + 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 --force + git push origin HEAD + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Check if oh-my-openagent already published id: check-openagent run: |