From 87535e8e868b3bd07f1643503e28b59ffb7559ce Mon Sep 17 00:00:00 2001 From: Shaan Majid <70789625+shaanmajid@users.noreply.github.com> Date: Fri, 17 Apr 2026 14:32:10 +0000 Subject: [PATCH] chore(ci): use ephemeral release branch for v1.x (#10738) Co-authored-by: Jay --- .github/workflows/release-branch.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-branch.yml b/.github/workflows/release-branch.yml index e0f01972..57273813 100644 --- a/.github/workflows/release-branch.yml +++ b/.github/workflows/release-branch.yml @@ -285,7 +285,9 @@ jobs: npm version $TYPE fi fi - echo "::set-output name=newTag::$(node -p "require('./package.json').version")" + VERSION=$(node -p "require('./package.json').version") + echo "newTag=$VERSION" >> "$GITHUB_OUTPUT" + echo "newBranch=release-v1x/version-$VERSION" >> "$GITHUB_OUTPUT" - name: Bump bower etc env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -295,7 +297,8 @@ jobs: - name: Create Pull Request uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0 with: - branch: 'release' + branch: ${{ steps.bump-version.outputs.newBranch }} + base: v1.x commit-message: 'chore(release): prepare release ${{ steps.bump-version.outputs.newTag }}' body: 'This PR prepares the release ${{ steps.bump-version.outputs.newTag }}.' title: 'chore(release): prepare release ${{ steps.bump-version.outputs.newTag }}'