diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index 7f9eb1d1..6f2af908 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -11,6 +11,18 @@ jobs: runs-on: ubuntu-latest steps: + - name: "Block Fork PRs" + env: + HEAD_REPO: ${{ github.event.pull_request.head.repo.full_name }} + BASE_REPO: ${{ github.repository }} + run: | + echo "Head repo: $HEAD_REPO" + echo "Base repo: $BASE_REPO" + if [ "$HEAD_REPO" != "$BASE_REPO" ]; then + echo "PRs from forked repositories are not allowed." + exit 1 + fi + - name: "Checkout" uses: actions/checkout@v2 with: @@ -25,6 +37,9 @@ jobs: run: | npm install npx lerna bootstrap + - name: Run Lint + run: npx lerna run eslint + - name: Run Build run: npx lerna run build