Reorder Git commands for cleanup
Reordered the Git checkout command to occur after removing the unwanted files. This ensures that the cleanup operations are performed on the correct branch and reflect in the release process accurately.
This commit is contained in:
6
.github/workflows/CreateRelease.yml
vendored
6
.github/workflows/CreateRelease.yml
vendored
@@ -94,12 +94,12 @@ jobs:
|
||||
id: create_temp_branch
|
||||
if: steps.check_version.outputs.skip_release == 'false'
|
||||
run: |
|
||||
# Checkout the release branch
|
||||
git checkout release
|
||||
|
||||
# Remove unwanted files
|
||||
rm -rf .gitignore package-lock.json
|
||||
|
||||
# Checkout the release branch
|
||||
git checkout release
|
||||
|
||||
# Add new/modified files
|
||||
git add README.md package.json LICENSE dist/ src/ tsconfig.json
|
||||
|
||||
|
Reference in New Issue
Block a user