Skip to content

Commit 62a4b6e

Browse files
committed
build: Push to other branches on release
1 parent 7655b35 commit 62a4b6e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release-please.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
- uses: actions/setup-node@v4
2828
with:
29-
node-version: 18
29+
node-version: 22
3030
registry-url: "https://registry.npmjs.org"
3131
if: ${{ steps.release.outputs.release_created }}
3232

@@ -45,6 +45,14 @@ jobs:
4545
npx jsr publish
4646
if: ${{ steps.release.outputs.release_created }}
4747

48+
- name: Push to latest and version branches branch
49+
run: |
50+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
51+
git config --global user.name "github-actions[bot]"
52+
git push -f origin main:v${{ steps.release.outputs.major }}.x
53+
git push -f origin main:latest
54+
if: ${{ steps.release.outputs.release_created }}
55+
4856
# Tweets out release announcement
4957
- run: 'node dist/esm/bin.js -t -b -m "${{ github.event.repository.full_name }} v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }} has been released!\n\n${{ github.event.repository.html_url }}/releases/tag/${{ steps.release.outputs.tag_name }}"'
5058
if: ${{ steps.release.outputs.release_created }}

0 commit comments

Comments
 (0)