Skip to content

Commit

Permalink
feat: Creating/updating the stable branch after the release. (#5003)
Browse files Browse the repository at this point in the history
* Creating/updating the stable branch after the release.

Signed-off-by: lrangine <[email protected]>

* Update .github/workflows/release.yml

Co-authored-by: Francisco Arceo <[email protected]>
Signed-off-by: lrangine <[email protected]>

* Update .github/workflows/release.yml

Co-authored-by: Francisco Arceo <[email protected]>
Signed-off-by: lrangine <[email protected]>

---------

Signed-off-by: lrangine <[email protected]>
Co-authored-by: Francisco Arceo <[email protected]>
  • Loading branch information
lokeshrangineni and franciscojavierarceo authored Feb 4, 2025
1 parent c9aca2d commit e9b53cc
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 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,12 @@ 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: Updating `stable` branch after release.
if: github.event.inputs.dry_run == 'false'
run: |
git fetch origin
# note that this checkout creates a branch called `stable` if it does not exist
git checkout -B stable
git reset --hard origin/${GITHUB_REF##*/}
git push -f origin stable

0 comments on commit e9b53cc

Please sign in to comment.