Skip to content

Commit e2272bb

Browse files
committed
ci: continous release
1 parent 894fb56 commit e2272bb

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/pkg.pr.new.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Publish Any Commit
2+
3+
on:
4+
pull_request:
5+
branches: main
6+
paths-ignore:
7+
- 'packages/docs/**'
8+
- 'packages/playground/**'
9+
10+
push:
11+
branches:
12+
- '**'
13+
tags:
14+
- '!**'
15+
paths-ignore:
16+
- 'packages/docs/**'
17+
- 'packages/playground/**'
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
- uses: pnpm/action-setup@v4
29+
- uses: actions/setup-node@v4
30+
with:
31+
node-version: lts/*
32+
cache: pnpm
33+
34+
- name: Install
35+
run: pnpm install --frozen-lockfile
36+
37+
- name: Build
38+
run: pnpm -C packages/router build
39+
40+
- name: Build DTS
41+
run: pnpm -C packages/router build:dts
42+
43+
- name: Release
44+
run: pnpm dlx pkg-pr-new publish --compact --pnpm './packages/*'

0 commit comments

Comments
 (0)