File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -76,12 +76,17 @@ jobs:
7676 git config --global user.name "${{ github.actor }}"
7777 git config --global user.email "${{ github.actor }}@users.noreply.github.com"
7878
79+ # Ensure the working directory is clean
80+ git status
81+ git reset --hard
82+ git clean -fdx
83+
7984 # Get current version and bump it
8085 CURRENT_VERSION=$(node -p "require('./package.json').version")
8186 NEW_VERSION=$(npm version patch -m "Bump version to %s")
8287 echo "VERSION=${NEW_VERSION}" >> $GITHUB_ENV
8388
84- # Ensure the working directory is clean
89+ # Ensure the working directory is clean again
8590 git status
8691 git add -A || echo "No changes to commit"
8792 git commit -m "Auto commit changes for version bump" || echo "No changes to commit"
You can’t perform that action at this time.
0 commit comments