Skip to content

Commit 4f18365

Browse files
committed
chore: add publish-commit workflow
1 parent e89080c commit 4f18365

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,29 @@ jobs:
8282

8383
- name: Unit Test
8484
run: bun test
85+
86+
publish-commit:
87+
runs-on: ubuntu-latest
88+
89+
steps:
90+
- uses: actions/checkout@v4
91+
92+
- name: Install Bun
93+
uses: oven-sh/setup-bun@v2
94+
95+
- name: Use cached node_modules
96+
uses: actions/cache@v4
97+
with:
98+
path: node_modules
99+
key: node-modules-${{ hashFiles('**/bun.lock') }}
100+
restore-keys: |
101+
node-modules-
102+
103+
- name: Install Dependencies
104+
run: bun install
105+
106+
- name: Build
107+
run: bun run build
108+
109+
- name: Publish Commit
110+
run: bunx pkg-pr-new publish

0 commit comments

Comments
 (0)