Skip to content

Commit

Permalink
Creating/updating the stable branch after the release.
Browse files Browse the repository at this point in the history
Signed-off-by: lrangine <[email protected]>
  • Loading branch information
lokeshrangineni committed Feb 3, 2025
1 parent 6607d3d commit 42b640a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
persist-credentials: true
- name: Setup Node.js
uses: actions/setup-node@v3
with:
Expand All @@ -179,3 +179,11 @@ jobs:
if: github.event.inputs.dry_run == 'false'
run: |
npx -p @semantic-release/changelog -p @semantic-release/git -p @semantic-release/exec -p semantic-release semantic-release
- name: Create or update stable branch after release.
if: github.event.inputs.dry_run == 'false'
run: |
git fetch origin
git checkout -B stable
git reset --hard origin/${GITHUB_REF##*/}
git push -f origin stable

0 comments on commit 42b640a

Please sign in to comment.