Enhance release branch handling
Streamlined the branch checkout process by switching to `release --no-checkout` and added the push operation to the release branch. This improves the workflow efficiency and ensures the release branch is updated consistently.
This commit is contained in:
3
.github/workflows/CreateRelease.yml
vendored
3
.github/workflows/CreateRelease.yml
vendored
@@ -94,11 +94,12 @@ jobs:
|
||||
id: create_temp_branch
|
||||
if: steps.check_version.outputs.skip_release == 'false'
|
||||
run: |
|
||||
git checkout --orphan release/v${{ env.VERSION }}
|
||||
git checkout release --no-checkout
|
||||
git reset
|
||||
rm -f .gitignore
|
||||
git add README.md package.json LICENSE dist/ src/ tsconfig.json
|
||||
git commit -m "Prepare files for release ${{ env.VERSION }}"
|
||||
git push origin release
|
||||
shell: bash
|
||||
|
||||
- name: Create and push tag
|
||||
|
Reference in New Issue
Block a user