Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

Expand Down
Loading