Skip to content

Commit

Permalink
chore: updates workflow to build all packages when there are no chang…
Browse files Browse the repository at this point in the history
…es in casl- packages
  • Loading branch information
stalniy committed Jan 5, 2025
1 parent fa6cef3 commit 5626797
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ jobs:
run: |
echo "sha=${{ github.event.pull_request.base.sha || github.event.before }}" >> $GITHUB_OUTPUT
- name: Build
run: pnpm run -r --filter '[${{ steps.base-commit.outputs.sha }}]...' build
run: |
if [[ "${{ github.event_name }}" != "pull_request" || $(git diff --name-only HEAD^1 HEAD | grep casl-) = "" ]]; then
pnpm run -r build
else
pnpm run -r --filter '[${{ steps.base-commit.outputs.sha }}]...' build
fi
- name: lint
run: pnpm run -r --filter '[${{ steps.base-commit.outputs.sha }}]' lint
- name: test
Expand Down

0 comments on commit 5626797

Please sign in to comment.