From 70ed80b9ab692ab6810209ce287ee745abc2e8f9 Mon Sep 17 00:00:00 2001 From: Nick Alteen Date: Thu, 2 May 2024 11:22:24 -0400 Subject: [PATCH] Add missing dist check --- .github/workflows/check-dist.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index 19aae80..283f46f 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -10,10 +10,12 @@ name: Check Transpiled JavaScript on: + pull_request: + branches: + - main push: branches: - main - pull_request: permissions: contents: read @@ -48,6 +50,11 @@ jobs: - name: Compare Directories id: diff run: | + if [ ! -d dist/ ]; then + echo "Expected dist/ directory does not exist. See status below:" + ls -la ./ + exit 1 + fi if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then echo "Detected uncommitted changes after build. See status below:" git diff --ignore-space-at-eol --text dist/