Skip to content

Commit 1e258d8

Browse files
committed
chore: refine update-resolver workflow
- Remove unnecessary git clean command before committing changes - Move git clean command to after version bump step
1 parent 45f942a commit 1e258d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/update-resolver.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,15 @@ jobs:
5555
else
5656
git commit -m "chore: bump doc-detective-resolver version to ${{ steps.version.outputs.version }}"
5757
git push
58-
git clean -fd
5958
echo "has_changes=true" >> $GITHUB_OUTPUT
6059
fi
6160
6261
- name: Bump patch version
6362
id: patch
6463
if: steps.commit.outputs.has_changes == 'true'
6564
run: |
65+
git checkout -- .
66+
git clean -fd
6667
npm version patch
6768
git push
6869
git push --tags

0 commit comments

Comments
 (0)