Skip to content

Commit 6181660

Browse files
committed
chore(workflows): try commiting pre-release exit to avoid it being discarded
1 parent 17ecf8d commit 6181660

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/version.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,14 @@ jobs:
3838
- name: Exit prerelease mode
3939
# This step errors if it is not in prerelease mode
4040
continue-on-error: true
41-
run: pnpm canary:exit
41+
run: |
42+
pnpm canary:exit
43+
if [ $? -eq 0 ]; then
44+
git config --global user.name 'github-actions[bot]'
45+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
46+
git add .changeset/pre.json || true
47+
git commit -m "chore: exit prerelease mode" || echo "No changes to commit"
48+
fi
4249
- name: Create Release Pull Request
4350
uses: changesets/action@06245a4e0a36c064a573d4150030f5ec548e4fcc
4451
with:

0 commit comments

Comments
 (0)