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 7
7
jobs :
8
8
pkg-pr :
9
9
runs-on : ubuntu-latest
10
-
11
10
steps :
12
11
- name : Checkout code
13
12
uses : actions/checkout@v4
22
21
23
22
- name : Build
24
23
run : bun run --filter alchemy build
25
-
24
+
26
25
# pkr.pr.new relies on pnpm-workspace.yaml for the `--pnpm` flag
27
26
# which we need to resolve `catalog:` dependencies prior to publishing
28
27
- name : Prepare Publish
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ concurrency:
11
11
12
12
jobs :
13
13
deploy-preview :
14
- if : ${{ github.event.action != 'closed' }}
14
+ if : ( github.event.action != 'closed' && github.event.pull_request.head.repo.fork == false)
15
15
runs-on : ubuntu-latest
16
16
permissions :
17
17
id-token : write
54
54
PULL_REQUEST : ${{ github.event.pull_request.number }}
55
55
56
56
cleanup-preview :
57
- if : ${{ github.event.action == 'closed' }}
57
+ if : ( github.event.action == 'closed' && github.event.pull_request.head.repo.fork == false)
58
58
runs-on : ubuntu-latest
59
59
permissions :
60
60
id-token : write
Original file line number Diff line number Diff line change 9
9
10
10
# Ensure only one workflow runs at a time
11
11
concurrency :
12
- group : " tests-${{ github.ref }}"
12
+ group : " tests-${{ github.event.pull_request.number }}"
13
13
cancel-in-progress : false
14
14
15
15
jobs :
16
16
test :
17
+ if : github.event.pull_request.head.repo.fork == false
18
+
17
19
runs-on : ubuntu-latest
18
20
permissions :
19
21
id-token : write
@@ -30,14 +32,23 @@ jobs:
30
32
with :
31
33
node-version : " 22"
32
34
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
+
33
43
- name : Setup Alchemy Environment
34
44
uses : ./.github/actions/setup-alchemy
45
+ if : github.event.pull_request.head.repo.fork == false
35
46
with :
36
47
aws-role-arn : ${{ secrets.AWS_ROLE_ARN }}
37
48
aws-region : us-west-2
38
49
39
50
- name : Check Types and Lint
40
- run : |
51
+ run : |
41
52
bun run build
42
53
bun run check
43
54
70
81
UPSTASH_API_KEY : ${{ env.UPSTASH_API_KEY }}
71
82
72
83
VERCEL_ACCESS_TOKEN : ${{ env.VERCEL_ACCESS_TOKEN }}
73
-
You can’t perform that action at this time.
0 commit comments