From 39d98232cc1c37942b5455b73a5203a594a1b8cc Mon Sep 17 00:00:00 2001 From: Mohan Raj Date: Mon, 19 Feb 2024 16:14:11 +0000 Subject: [PATCH] unstage husky and node_modules --- .gitattributes | 2 ++ .github/workflows/plugin-build.yml | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6d16254 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +.circleci export-ignore +node_modules export-ignore \ No newline at end of file diff --git a/.github/workflows/plugin-build.yml b/.github/workflows/plugin-build.yml index 689af80..4eb45b4 100644 --- a/.github/workflows/plugin-build.yml +++ b/.github/workflows/plugin-build.yml @@ -42,6 +42,8 @@ jobs: - name: Create and push built branch run: | git checkout -b main-built + git reset -- .husky/ # Unstage the .husky directory + git reset -- node_modules/ # Unstage the node_modules directory git add -A # Stage all changes, including untracked files git ls-files --ignored --exclude-standard -o -z | xargs -0 git rm --cached # Remove ignored files from the index git commit -m "Built WordPress plugin"