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"