Skip to content

Commit

Permalink
ci : fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemain committed Sep 6, 2024
1 parent 0788097 commit 570b9f2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,6 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# 非 main 分支发布时,需要提交各 package 里的 version 变更
- name: Commit Files Before Push Release Branch
if: github.event.ref != 'refs/heads/main' && github.event.inputs.release_branch == ''
run: |
git add -A
git commit -m 'chore: update package version to v${{github.event.inputs.version}}'
git push origin ${{ github.event.inputs.release_branch }}
# 非 main 分支发布时,自动推送代码到对应分支并打 Tag
- name: Publish Prod Version
if: steps.checkTag.outputs.exists == 'false' && github.event.ref != 'refs/heads/main' && github.event.inputs.release_branch == ''
Expand Down

0 comments on commit 570b9f2

Please sign in to comment.