Skip to content

Commit ac298e5

Browse files
committed
unstage husky and node_modules
1 parent c723169 commit ac298e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/plugin-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343
run: |
4444
git checkout -b main-built
4545
git add -A # Stage all changes, including untracked files
46-
git reset -- .husky/ # Unstage the .husky directory
47-
git reset -- node_modules/ # Unstage the node_modules directory
46+
git rm --cached -r .husky || true
47+
git rm --cached -r node_modules || true
4848
git ls-files --ignored --exclude-standard -o -z | xargs -0 git rm --cached # Remove ignored files from the index
4949
git commit -m "Built WordPress plugin"
5050
git push origin main-built

0 commit comments

Comments
 (0)