File tree Expand file tree Collapse file tree 3 files changed +16
-7
lines changed
Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 77jobs :
88 pkg-pr :
99 runs-on : ubuntu-latest
10-
1110 steps :
1211 - name : Checkout code
1312 uses : actions/checkout@v4
2221
2322 - name : Build
2423 run : bun run --filter alchemy build
25-
24+
2625 # pkr.pr.new relies on pnpm-workspace.yaml for the `--pnpm` flag
2726 # which we need to resolve `catalog:` dependencies prior to publishing
2827 - name : Prepare Publish
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ concurrency:
1111
1212jobs :
1313 deploy-preview :
14- if : ${{ github.event.action != 'closed' }}
14+ if : ( github.event.action != 'closed' && github.event.pull_request.head.repo.fork == false)
1515 runs-on : ubuntu-latest
1616 permissions :
1717 id-token : write
5454 PULL_REQUEST : ${{ github.event.pull_request.number }}
5555
5656 cleanup-preview :
57- if : ${{ github.event.action == 'closed' }}
57+ if : ( github.event.action == 'closed' && github.event.pull_request.head.repo.fork == false)
5858 runs-on : ubuntu-latest
5959 permissions :
6060 id-token : write
Original file line number Diff line number Diff line change 99
1010# Ensure only one workflow runs at a time
1111concurrency :
12- group : " tests-${{ github.ref }}"
12+ group : " tests-${{ github.event.pull_request.number }}"
1313 cancel-in-progress : false
1414
1515jobs :
1616 test :
17+ if : github.event.pull_request.head.repo.fork == false
18+
1719 runs-on : ubuntu-latest
1820 permissions :
1921 id-token : write
@@ -30,14 +32,23 @@ jobs:
3032 with :
3133 node-version : " 22"
3234
35+ - name : Setup Bun
36+ uses : oven-sh/setup-bun@v1
37+ with :
38+ bun-version : latest
39+
40+ - name : Install dependencies
41+ run : bun install
42+
3343 - name : Setup Alchemy Environment
3444 uses : ./.github/actions/setup-alchemy
45+ if : github.event.pull_request.head.repo.fork == false
3546 with :
3647 aws-role-arn : ${{ secrets.AWS_ROLE_ARN }}
3748 aws-region : us-west-2
3849
3950 - name : Check Types and Lint
40- run : |
51+ run : |
4152 bun run build
4253 bun run check
4354
7081 UPSTASH_API_KEY : ${{ env.UPSTASH_API_KEY }}
71827283 VERCEL_ACCESS_TOKEN : ${{ env.VERCEL_ACCESS_TOKEN }}
73-
You can’t perform that action at this time.
0 commit comments