Skip to content

Commit 32315ff

Browse files
fix: ensure version bump updates CHANGELOG correctly
1 parent af26bbb commit 32315ff

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ jobs:
8282
- name: Bump version and update CHANGELOG
8383
id: bump
8484
run: |
85+
NEW_VERSION=$(npm version ${{ github.event.inputs.version }} --no-git-tag-version)
8586
echo "version=$NEW_VERSION" >> $GITHUB_OUTPUT
8687
sed -i "s/## \[Unreleased\]/## [Unreleased]\n\n## [$NEW_VERSION] - $(date +%Y-%m-%d)/" CHANGELOG.md
8788

0 commit comments

Comments
 (0)