diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index bf4cfbf1..e26442fc 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -22,6 +22,9 @@ jobs: with: token: ${{ secrets.GH_TOKEN }} + - name: Setup Node Environment + uses: ./.github/actions/setup-node + - uses: release-drafter/release-drafter@v5 id: release-drafter env: @@ -33,6 +36,17 @@ jobs: changelog_file: website/src/pages/changelog.md latest_changes_position: '# 更新日志\n\n' changelog_body: ${{ steps.release-drafter.outputs.body }} + commit_and_push: false + + - name: Commit and Push + run: | + yarn prettier + git config user.name github-actions[bot] + git config user.email github-actions[bot]@users.noreply.github.com + git add . + git commit -m ":memo: Update changelog" + git push + release: if: startsWith(github.ref, 'refs/tags/') diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4adacd67..25efa0ac 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,9 +29,12 @@ jobs: with: changelog_file: website/src/pages/changelog.md archive_title: ${{ env.TAG_NAME }} + commit_and_push: false - name: Archive Files - run: yarn archive $(poetry version -s) + run: | + yarn archive $(poetry version -s) + yarn prettier - name: Push Tag run: |