From c19f22c380edf407b9ff4a769b5bbceab0a36aa0 Mon Sep 17 00:00:00 2001 From: Nick Alteen Date: Thu, 2 May 2024 11:21:32 -0400 Subject: [PATCH] Add missing dist check --- .github/workflows/check-dist.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index 9d50b20..5c4bd8b 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -1,4 +1,4 @@ -# In JavaScript actions, `dist/` is a special directory. When you reference +# In TypeScript actions, `dist/` is a special directory. When you reference # an action with the `uses:` property, `dist/index.js` is the code that will be # run. For this project, the `dist/index.js` file is transpiled from other # source files. This workflow ensures the `dist/` directory contains the @@ -25,10 +25,6 @@ jobs: name: Check dist/ runs-on: ubuntu-latest - permissions: - contents: read - statuses: write - steps: - name: Checkout id: checkout @@ -54,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/