Skip to content

Commit f7f21c6

Browse files
committed
Add version number to changesets PR
1 parent 6fc8cbe commit f7f21c6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,17 @@ jobs:
5252
- name: pnpm install
5353
run: pnpm install
5454

55+
- name: Capture new release version
56+
id: version
57+
run: |
58+
pnpm changeset version
59+
echo "version=$(jq -r '.version' package.json)" >> $GITHUB_OUTPUT
60+
git restore .
61+
5562
- uses: changesets/action@v1
5663
with:
64+
title: 'Release v${{ steps.version.outputs.version }}'
65+
commit: 'Release v${{ steps.version.outputs.version }}'
5766
publish: pnpm changeset publish
5867
env:
5968
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)