Skip to content

Commit

Permalink
chore: Fix nx affected (#5509)
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins committed Jun 2, 2023
1 parent 8172ff6 commit 3210f6b
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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 }}"
Expand All @@ -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'
Expand Down

0 comments on commit 3210f6b

Please sign in to comment.