fix(publish): restore version commit-back to dev after npm release

This commit is contained in:
Peïo Thibault
2026-03-26 12:44:27 +01:00
parent 8e65d6cf2c
commit fb837db90d

View File

@@ -216,6 +216,19 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
NPM_CONFIG_PROVENANCE: true 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 - name: Check if oh-my-openagent already published
id: check-openagent id: check-openagent
run: | run: |