-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changelogs: Add source /home/runner/.bashrc to the CI job to fix bun
- Loading branch information
Showing
1 changed file
with
7 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,14 +59,13 @@ jobs: | |
run: npx [email protected] publish ${{ inputs.version_bump }} --yes --no-private --loglevel=verbose --dist-tag=${{ inputs.dist_tag }} | ||
- name: '✏️ Generate release changelog' | ||
run: | | ||
source /home/runner/.bashrc | ||
npm run changelog -- --version=current | ||
- name: '📦 Commit and push changelog' | ||
run: | | ||
- name: '📦 Commit and push changelog' | ||
run: | | ||
if [[ -n $(git status --porcelain CHANGELOG.md) ]]; then | ||
git commit CHANGELOG.md -m "chore: update changelog" | ||
git push origin HEAD:${{ github.event.pull_request.head.ref }} | ||
else | ||
echo "No changes in CHANGELOG.md. Skipping commit and push." | ||
fi | ||
if [[ -n $(git status --porcelain CHANGELOG.md) ]]; then | ||
git commit CHANGELOG.md -m "chore: update changelog" | ||
git push origin HEAD:${{ github.event.pull_request.head.ref }} | ||
else | ||
echo "No changes in CHANGELOG.md. Skipping commit and push." | ||
fi |