Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release-lazy-table-renderer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release lazy-table-renderer
on:
push:
branches:
- main
- release
paths:
- 'packages/lazy-table-renderer/**'

Expand Down
22 changes: 17 additions & 5 deletions .github/workflows/release-vue-pivottable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release vue-pivottable
on:
push:
branches:
- main
- release
jobs:
release:
name: Release
Expand Down Expand Up @@ -42,14 +42,26 @@ jobs:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
installation_id: ${{ secrets.APP_INSTALLATION_ID }}
- name: Configure Git Remote
run: |
git remote set-url origin https://x-access-token:${{ steps.generate-token.outputs.token }}@github.com/vue-pivottable/vue3-pivottable.git

- name: Release
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
pnpm dlx semantic-release

- name: Create Pull Request to main
if: success()
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: release
base: main
title: 'chore: update version to latest release'
body: |
This PR updates the main branch with the latest version information from the release branch.

- Updates package.json version
- Updates CHANGELOG.md

This PR was automatically created by the release workflow.
35 changes: 35 additions & 0 deletions .github/workflows/sync-vue-pivottable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Sync Release Branch

on:
push:
branches:
- main

jobs:
sync-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Update release branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"

# release 브랜치가 존재하는지 확인
if git ls-remote --exit-code --heads origin release; then
# 존재하면 업데이트
git fetch origin release
git checkout release
git merge --no-edit origin/main
else
# 존재하지 않으면 생성
git checkout -b release
fi

git push origin release