Skip to content

Commit e34cadc

Browse files
authored
ci: add publish ci (#8937)
1 parent 8fcfe79 commit e34cadc

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

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

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Publish Any Commit
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
if: github.repository == 'ant-design/pro-components'
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- uses: pnpm/action-setup@v4
20+
name: Install pnpm
21+
with:
22+
run_install: false
23+
24+
- name: Install Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 20
28+
cache: 'pnpm'
29+
30+
- name: Install dependencies
31+
run: pnpm install
32+
33+
- name: Build
34+
run: pnpm build
35+
36+
# https://github.com/stackblitz-labs/pkg.pr.new#readme
37+
- run: pnpx pkg-pr-new publish './packages/*' --no-template --compact

0 commit comments

Comments
 (0)