Skip to content

Commit d39eb4b

Browse files
committed
feat: add build pr checker
1 parent 734fd32 commit d39eb4b

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/pr-build.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build for PR
2+
3+
on:
4+
pull_request:
5+
branches: [ "master" ]
6+
paths-ignore:
7+
- 'data/**/*.json'
8+
# Allow manual triggering of the workflow
9+
workflow_dispatch:
10+
11+
# Add explicit permissions for the GITHUB_TOKEN
12+
permissions:
13+
contents: read
14+
pull-requests: write # Required to add comments to PRs
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v3
22+
23+
- name: Setup Bun
24+
uses: oven-sh/setup-bun@v1
25+
with:
26+
bun-version: latest
27+
28+
- name: Install dependencies
29+
run: bun install
30+
31+
- name: 🛠️ Build
32+
run: bun run build

0 commit comments

Comments
 (0)