Skip to content

Commit 33d7d23

Browse files
committed
Update workflow changelog
1 parent 47c99ca commit 33d7d23

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

.github/workflows/npm-publish.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,23 @@ jobs:
9393
- name: Commit version bump
9494
if: steps.version.outputs.version_changed == 'true'
9595
run: |
96-
git config --local user.email "[email protected]"
97-
git config --local user.name "GitHub Action"
98-
git add package.json
99-
git commit -m "Bump version to ${{ steps.version.outputs.current_version }} [skip ci]"
100-
git tag v${{ steps.version.outputs.current_version }}
101-
git push
102-
git push --tags
96+
git config --local user.email "[email protected]"
97+
git config --local user.name "GitHub Action"
98+
99+
# Just add the CHANGELOG.md file - package.json is already at the right version
100+
git add CHANGELOG.md
101+
102+
# Check if there are changes to commit
103+
if git diff --staged --quiet; then
104+
echo "No changes to commit"
105+
else
106+
git commit -m "Add changelog for version ${{ steps.version.outputs.current_version }} [skip ci]"
107+
git tag v${{ steps.version.outputs.current_version }}
108+
git push
109+
git push --tags
110+
fi
103111
env:
104-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
112+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
105113

106114
- name: Create GitHub Release
107115
if: steps.version.outputs.version_changed == 'true'

src/components/Legend.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default class Legend {
1818
symbolSize: 12,
1919
fontSize: 12,
2020
fontFamily: 'sans-serif',
21-
interactive: true, // Allow toggling series visibility
21+
interactive: true,
2222
wrapText: true,
2323
maxWidth: null,
2424
padding: { top: 5, right: 10, bottom: 5, left: 10 }

0 commit comments

Comments
 (0)