File tree Expand file tree Collapse file tree 3 files changed +53
-6
lines changed Expand file tree Collapse file tree 3 files changed +53
-6
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Release lazy-table-renderer
33on :
44 push :
55 branches :
6- - main
6+ - release
77 paths :
88 - ' packages/lazy-table-renderer/**'
99
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Release vue-pivottable
33on :
44 push :
55 branches :
6- - main
6+ - release
77jobs :
88 release :
99 name : Release
@@ -42,14 +42,26 @@ jobs:
4242 app_id : ${{ secrets.APP_ID }}
4343 private_key : ${{ secrets.APP_PRIVATE_KEY }}
4444 installation_id : ${{ secrets.APP_INSTALLATION_ID }}
45- - name : Configure Git Remote
46- run : |
47- git remote set-url origin https://x-access-token:${{ steps.generate-token.outputs.token }}@github.com/vue-pivottable/vue3-pivottable.git
48-
4945 - name : Release
5046 env :
5147 GITHUB_TOKEN : ${{ steps.generate-token.outputs.token }}
5248 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
5349 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
5450 run : |
5551 pnpm dlx semantic-release
52+
53+ - name : Create Pull Request to main
54+ if : success()
55+ uses : peter-evans/create-pull-request@v5
56+ with :
57+ token : ${{ secrets.GITHUB_TOKEN }}
58+ branch : release
59+ base : main
60+ title : ' chore: update version to latest release'
61+ body : |
62+ This PR updates the main branch with the latest version information from the release branch.
63+
64+ - Updates package.json version
65+ - Updates CHANGELOG.md
66+
67+ This PR was automatically created by the release workflow.
Original file line number Diff line number Diff line change 1+ name : Sync Release Branch
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ sync-release :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout
13+ uses : actions/checkout@v3
14+ with :
15+ fetch-depth : 0
16+
17+ - name : Update release branch
18+ env :
19+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
20+ run : |
21+ git config --global user.name "GitHub Actions"
22+ git config --global user.email "[email protected] " 23+
24+ # release 브랜치가 존재하는지 확인
25+ if git ls-remote --exit-code --heads origin release; then
26+ # 존재하면 업데이트
27+ git fetch origin release
28+ git checkout release
29+ git merge --no-edit origin/main
30+ else
31+ # 존재하지 않으면 생성
32+ git checkout -b release
33+ fi
34+
35+ git push origin release
You can’t perform that action at this time.
0 commit comments