Skip to content

Commit f47864f

Browse files
committed
Add version number to changesets PR
1 parent 51affbf commit f47864f

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
@@ -37,8 +37,17 @@ jobs:
3737
- name: npm run build
3838
run: npm run build
3939

40+
- name: Capture new release version
41+
id: version
42+
run: |
43+
npx changeset version
44+
echo "version=$(jq -r '.version' package.json)" >> $GITHUB_OUTPUT
45+
git restore .
46+
4047
- uses: changesets/action@v1
4148
with:
49+
title: 'Release v${{ steps.version.outputs.version }}'
50+
commit: 'Release v${{ steps.version.outputs.version }}'
4251
publish: npx changeset publish
4352
env:
4453
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)