Skip to content

Commit 20066e8

Browse files
authored
chore: add pkg.pr.new for CR (#60)
* chore: add pkg.pr.new for CR * uppercases
1 parent b941d6e commit 20066e8

File tree

3 files changed

+141
-0
lines changed

3 files changed

+141
-0
lines changed

.github/workflows/cr.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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/cli' && (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@v6
20+
with:
21+
fetch-depth: 0
22+
23+
- uses: actions/setup-node@v6
24+
25+
- uses: oven-sh/setup-bun@v2
26+
27+
- name: Install Dependencies
28+
run: bun install --frozen-lockfile
29+
30+
- name: Build
31+
run: bun run build
32+
33+
- name: Publish to StackBlitz
34+
run: |
35+
bun pkg-pr-new publish --compact

0 commit comments

Comments
 (0)