From 03aecc59f8b19c4b3db915391a8238b7fb98689a Mon Sep 17 00:00:00 2001 From: Corbin Crutchley Date: Tue, 29 Aug 2023 01:17:13 -0700 Subject: [PATCH] chore: attempt to fix test build CI command --- .github/workflows/pr.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 3864b4e97..cee9081b7 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -93,6 +93,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + with: + fetch-depth: 0 + ref: ${{ github.head_ref }} + repository: ${{github.event.pull_request.head.repo.full_name}} - uses: pnpm/action-setup@v2.2.4 with: version: 7 @@ -102,6 +106,10 @@ jobs: cache: 'pnpm' - name: Install dependencies run: pnpm --filter "./packages/**" --filter form --prefer-offline install --no-frozen-lockfile + - name: Get appropriate base and head commits for `nx affected` commands + uses: nrwl/nx-set-shas@v3 + with: + main-branch-name: 'main' - run: pnpm run test:build env: BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}