From d028222f828f3b02346e3694d46a7bc87b52c0a0 Mon Sep 17 00:00:00 2001 From: Barry Gordon Date: Mon, 27 Sep 2021 14:24:47 +0100 Subject: [PATCH] Fail the build if npm run all produces a diff This indicates that the latest version of the package hasn't been checked in --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8a123b8..21e9204 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,6 +14,8 @@ jobs: - uses: actions/checkout@v2 - run: npm ci - run: npm run all + # make sure the latest dist/ changes have been pushed + - run: git diff --quiet test: # make sure the action works on a clean machine without building runs-on: ubuntu-latest steps: