Skip to content

Commit eac4300

Browse files
chore(cr): publish pr package to pkg.pr.new (#4245)
Co-authored-by: Jonathan Haines <[email protected]>
1 parent 52e071a commit eac4300

File tree

3 files changed

+145
-2
lines changed

3 files changed

+145
-2
lines changed

.github/workflows/cr.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: cr
2+
on:
3+
push:
4+
branches: [main]
5+
tags: ['!**'] # Avoid publishing on tags
6+
pull_request:
7+
types: [opened, synchronize, labeled] # Run on PR creation, updates, and when labels are added
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.number }} # Concurrency group for each PR
11+
cancel-in-progress: true # Cancel in progress builds for the same PR
12+
13+
jobs:
14+
publish:
15+
if: github.repository == 'honojs/hono' && (github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'cr-tracked'))
16+
runs-on: ubuntu-latest
17+
name: 'Publish: pkg.pr.new'
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version: 20.x
26+
27+
- uses: oven-sh/setup-bun@v2
28+
29+
- name: Install Dependencies
30+
run: bun install
31+
32+
- name: Build
33+
run: bun run build
34+
35+
- name: Publish to StackBlitz
36+
run: |
37+
bun pkg-pr-new publish --compact

0 commit comments

Comments
 (0)