From 65b8c7bc99795baceac48e3577844388d74c10ef Mon Sep 17 00:00:00 2001 From: Vilius Sutkus '89 Date: Wed, 3 Aug 2022 15:27:53 +0300 Subject: [PATCH] [CI] Add a "rebuild needed" check --- .github/workflows/build-test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 2c49e9a..ea35726 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -26,6 +26,9 @@ jobs: - run: npm run build + - name: Check if dist/index.js needs to be rebuilt + run: git status dist/index.js | grep "nothing to commit, working tree clean" -q + format-check: runs-on: ubuntu-latest steps: