Skip to content
Merged
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
18 changes: 18 additions & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,24 @@ jobs:
token: ${{secrets.GITHUB_TOKEN}}
default-branch: main

# The logic to run the changelog through prettier
- name: Checkout Repository
uses: actions/checkout@v4
if: ${{ steps.release.outputs.prs_created }}
with:
ref: ${{ fromJson(steps.release.outputs.pr).headBranchName }}

- name: Run CHANGELOG.md through Prettier
if: ${{ steps.release.outputs.prs_created }}
run: npx prettier --write **/CHANGELOG.md

- name: Commit and push
if: ${{ steps.release.outputs.prs_created }}
run: |
git add **/CHANGELOG.md
git commit --amend --no-edit --no-verify
git push

# The logic below handles the npm publication:
- name: Checkout Repository
uses: actions/checkout@v4
Expand Down
Loading