message: ci: build only changed packages in pull requests
diff: @@ -9,7 +9,8 @@ jobs:
  node-version:
  - 10.x
  steps:
  - - uses: actions/checkout@v1
  + - uses: actions/checkout@v2
  + - run: git fetch origin master:master
  - uses: actions/setup-node@v1
  with:
  node-version: ${{ matrix.node-version }}
  @@ -24,6 +25,9 @@ jobs:
  ${{ runner.os }}-yarn-
  - run: yarn
  - run: yarn build --concurrency 2
  + if: github.ref == 'refs/heads/master'
  + - run: yarn build --concurrency 2 --since master
  + if: github.ref != 'refs/heads/master'
  lint:
  runs-on: ubuntu-latest
  strategy:
  @@ -31,7 +35,7 @@ jobs:
  node-version:
  - 10.x
  steps:
  - - uses: actions/checkout@v1
  + - uses: actions/checkout@v2
  - uses: actions/setup-node@v1
  with:
  node-version: ${{ matrix.node-version }}
  @@ -53,7 +57,7 @@ jobs:
  node-version:
  - 10.x
  steps:
  - - uses: actions/checkout@v1
  + - uses: actions/checkout@v2
  - uses: actions/setup-node@v1
  with:
  node-version: ${{ matrix.node-version }}
  @@ -75,7 +79,7 @@ jobs:
  node-version:
  - 10.x
  steps:
  - - uses: actions/checkout@v1
  + - uses: actions/checkout@v2
  - uses: actions/setup-node@v1
  with:
  node-version: ${{ matrix.node-version }}
  