Skip to content

Commit b10af49

Browse files
committed
Apply feedback
1 parent e00d780 commit b10af49

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ on:
2020
- ".changeset/**"
2121

2222
concurrency:
23-
group: ${{ github.workflow }}--${{ github.ref }}
23+
group: ${{ github.workflow }}--${{ github.event_name == 'pull_request_target' && format('pr#{0}', github.event.pull_request.number) || github.ref }}
2424
cancel-in-progress: true
2525

2626
permissions:
@@ -42,6 +42,8 @@ jobs:
4242
uses: actions/setup-node@v4
4343
with:
4444
node-version: 20.x
45+
cache: npm
46+
cache-dependency-path: package-lock.json
4547

4648
- name: Install dependencies
4749
run: npm ci --no-fund --no-audit
@@ -67,7 +69,8 @@ jobs:
6769
# For external PRs: environment protection requires manual approval
6870
if: |
6971
github.event_name == 'push' ||
70-
github.event.pull_request.head.repo.full_name == github.repository
72+
(github.event_name == 'pull_request_target' &&
73+
github.event.pull_request.head.repo.full_name == github.repository)
7174
7275
steps:
7376
- name: Checkout sources
@@ -85,6 +88,8 @@ jobs:
8588
uses: actions/setup-node@v4
8689
with:
8790
node-version: 20.x
91+
cache: npm
92+
cache-dependency-path: package-lock.json
8893

8994
- name: Install dependencies
9095
run: npm ci --no-fund --no-audit

0 commit comments

Comments
 (0)