name: prettier on: [ pull_request ] jobs: lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 with: repository: ${{ github.event.pull_request.head.repo.full_name }} ref: ${{ github.event.pull_request.head.ref }} - name: Setup node.js uses: actions/setup-node@v3 with: node-version: '16.x' - name: Install dependencies run: yarn --frozen-lockfile - name: Lint with prettier run: yarn lint