Skip to content

Commit

Permalink
Changelogs: Add source /home/runner/.bashrc to the CI job to fix bun
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Apr 24, 2024
1 parent c5eba3d commit 7badd82
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/publish-npm-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7badd82

Please sign in to comment.