fix(publish): restore version commit-back to dev after npm release
This commit is contained in:
13
.github/workflows/publish.yml
vendored
13
.github/workflows/publish.yml
vendored
@@ -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: |
|
||||||
|
|||||||
Reference in New Issue
Block a user