Skip to content

Commit 3210f6b

Browse files
chore: Fix nx affected (#5509)
1 parent 8172ff6 commit 3210f6b

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/pr.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ jobs:
1717
fetch-depth: 0
1818
ref: ${{ github.head_ref }}
1919
repository: ${{github.event.pull_request.head.repo.full_name}}
20-
- uses: pnpm/[email protected]
20+
- name: Setup pnpm
21+
uses: pnpm/[email protected]
2122
with:
2223
version: 8
23-
- uses: actions/setup-node@v3
24+
- name: Setup Node
25+
uses: actions/setup-node@v3
2426
with:
2527
node-version: 18.16.0
2628
cache: 'pnpm'
@@ -37,17 +39,21 @@ jobs:
3739
fetch-depth: 0
3840
ref: ${{ github.head_ref }}
3941
repository: ${{github.event.pull_request.head.repo.full_name}}
40-
- uses: pnpm/[email protected]
42+
- name: Setup pnpm
43+
uses: pnpm/[email protected]
4144
with:
4245
version: 8
43-
- uses: actions/setup-node@v3
46+
- name: Setup Node
47+
uses: actions/setup-node@v3
4448
with:
4549
node-version: 18.16.0
4650
cache: 'pnpm'
4751
- name: Install dependencies
4852
run: pnpm --filter "./packages/**" --filter query --prefer-offline install
49-
- name: Derive appropriate SHAs for base and head for `nx affected` commands
50-
uses: nrwl/nx-set-shas@v2
53+
- name: Get appropriate base and head commits for `nx affected` commands
54+
uses: nrwl/nx-set-shas@v3
55+
with:
56+
main-branch-name: 'alpha'
5157
- run: |
5258
echo "BASE: ${{ env.NX_BASE }}"
5359
echo "HEAD: ${{ env.NX_HEAD }}"
@@ -74,10 +80,12 @@ jobs:
7480
fetch-depth: 0
7581
ref: ${{ github.head_ref }}
7682
repository: ${{github.event.pull_request.head.repo.full_name}}
77-
- uses: pnpm/[email protected]
83+
- name: Setup pnpm
84+
uses: pnpm/[email protected]
7885
with:
7986
version: 8
80-
- uses: actions/setup-node@v3
87+
- name: Setup Node
88+
uses: actions/setup-node@v3
8189
with:
8290
node-version: 18.16.0
8391
cache: 'pnpm'

0 commit comments

Comments
 (0)