From a0373e41e21204cedf3be30d51e1ad383d97da27 Mon Sep 17 00:00:00 2001 From: "Simen A. W. Olsen" Date: Sat, 8 Apr 2023 00:04:39 +0200 Subject: [PATCH] Add dist files to gitignore and forcibly commit them instead --- .github/workflows/push.yml | 1 + .gitignore | 4 +++- package.json | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 345c4f3..79427ea 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -24,6 +24,7 @@ jobs: - uses: stefanzweifel/git-auto-commit-action@v4.11.0 with: file_pattern: dist/** + add_options: -u --force commit_message: 'chore(dist): Update dist [automated commit]' commit_user_name: cobraz commit_user_email: cobraz@users.noreply.github.com diff --git a/.gitignore b/.gitignore index 18e337d..a9630a4 100644 --- a/.gitignore +++ b/.gitignore @@ -96,4 +96,6 @@ Thumbs.db # Ignore built ts files __tests__/runner/* -lib/**/* \ No newline at end of file +lib/**/* + +dist diff --git a/package.json b/package.json index d48f2fe..a6096d9 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ }, "husky": { "hooks": { - "pre-commit": "yarn build && git add dist/* && lint-staged" + "pre-commit": "lint-staged" } }, "lint-staged": {