diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 5df318e69d..4abe619592 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -17,10 +17,12 @@ jobs: fetch-depth: 0 ref: ${{ github.head_ref }} repository: ${{github.event.pull_request.head.repo.full_name}} - - uses: pnpm/action-setup@v2.2.4 + - name: Setup pnpm + uses: pnpm/action-setup@v2.2.4 with: version: 8 - - uses: actions/setup-node@v3 + - name: Setup Node + uses: actions/setup-node@v3 with: node-version: 18.16.0 cache: 'pnpm' @@ -37,17 +39,21 @@ jobs: fetch-depth: 0 ref: ${{ github.head_ref }} repository: ${{github.event.pull_request.head.repo.full_name}} - - uses: pnpm/action-setup@v2.2.4 + - name: Setup pnpm + uses: pnpm/action-setup@v2.2.4 with: version: 8 - - uses: actions/setup-node@v3 + - name: Setup Node + uses: actions/setup-node@v3 with: node-version: 18.16.0 cache: 'pnpm' - name: Install dependencies run: pnpm --filter "./packages/**" --filter query --prefer-offline install - - name: Derive appropriate SHAs for base and head for `nx affected` commands - uses: nrwl/nx-set-shas@v2 + - name: Get appropriate base and head commits for `nx affected` commands + uses: nrwl/nx-set-shas@v3 + with: + main-branch-name: 'alpha' - run: | echo "BASE: ${{ env.NX_BASE }}" echo "HEAD: ${{ env.NX_HEAD }}" @@ -74,10 +80,12 @@ jobs: fetch-depth: 0 ref: ${{ github.head_ref }} repository: ${{github.event.pull_request.head.repo.full_name}} - - uses: pnpm/action-setup@v2.2.4 + - name: Setup pnpm + uses: pnpm/action-setup@v2.2.4 with: version: 8 - - uses: actions/setup-node@v3 + - name: Setup Node + uses: actions/setup-node@v3 with: node-version: 18.16.0 cache: 'pnpm'