File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 2020 - " .changeset/**"
2121
2222concurrency :
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
2626permissions :
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
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
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
You can’t perform that action at this time.
0 commit comments