-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (40 loc) · 1.12 KB
/
publish.yml
File metadata and controls
49 lines (40 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Publish
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Build packages
run: bun run build
- name: Publish Core Package to JSR
working-directory: packages/core
run: |
echo "Publishing core package..."
npx jsr publish --allow-dirty
continue-on-error: false
- name: Publish Middleware Package to JSR
working-directory: packages/middleware
run: |
echo "Publishing middleware package..."
npx jsr publish --allow-dirty
continue-on-error: false
- name: Publish Status
if: success()
run: |
echo "✅ All packages published successfully to JSR!"
echo "📦 Core: @rabbit-company/web"
echo "🔧 Middleware: @rabbit-company/web-middleware"