Skip to content

Commit

Permalink
Use check for build instead of auto-commit (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
paescuj authored Feb 24, 2025
1 parent 9cfad06 commit 42b5392
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 59 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/build.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,29 @@ jobs:
echo 'closed-issues=${{ steps.action.outputs.closed-issues }}'
${{ startsWith(steps.action.outputs.closed-issues, '[') }} || { echo '::error::Expected "closed-issues" output to start with ['; exit 1; }
${{ endsWith(steps.action.outputs.closed-issues, ']') }} || { echo '::error::Expected "closed-issues" output to end with ]'; exit 1; }
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup env
uses: ./.github/actions/setup

- name: Build
run: pnpm run bundle

- name: Compare dist
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/
exit 1
fi
Loading

0 comments on commit 42b5392

Please sign in to comment.