From 45daa1b3a195d1d082ea5e77bda37ceb5593c493 Mon Sep 17 00:00:00 2001 From: Ruben Gees Date: Mon, 26 Feb 2024 17:35:04 +0100 Subject: [PATCH] Revert "Run build in pre-push" This reverts commit 5f78b0ad57baec8ae3545615c11d1c610ac84aff. --- .github/workflows/ci.yml | 10 +++++++--- .husky/pre-push | 4 ---- 2 files changed, 7 insertions(+), 7 deletions(-) delete mode 100644 .husky/pre-push diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a06dcfe..112a4b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,11 @@ jobs: - run: pnpm install - run: pnpm verify - - run: pnpm build - - name: Verify dist - run: git diff --exit-code dist/index.js + - if: github.ref == 'refs/heads/main' + run: pnpm build + + - if: github.ref == 'refs/heads/main' + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: Build diff --git a/.husky/pre-push b/.husky/pre-push deleted file mode 100644 index d8ee5f9..0000000 --- a/.husky/pre-push +++ /dev/null @@ -1,4 +0,0 @@ -pnpm build - -git add dist -git diff --staged --quiet || git commit -m 'Build'