Skip to content

Commit 856c452

Browse files
committed
ci: add pkg-pr-new
1 parent f8f7148 commit 856c452

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: pkg-pr-new
2+
on:
3+
push:
4+
branches: [develop]
5+
pull_request:
6+
branches: [develop]
7+
8+
jobs:
9+
build:
10+
if: ${{ github.repository == 'Tencent/tdesign-starter-cli' && !startsWith(github.head_ref, 'release/')}}
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v6
15+
with:
16+
submodules: recursive
17+
- uses: pnpm/action-setup@v6
18+
19+
- uses: actions/setup-node@v6
20+
with:
21+
node-version-file: .node-version
22+
23+
- run: pnpm install
24+
25+
- run: pnpm run build
26+
27+
28+
- run: pnpm dlx pkg-pr-new publish --compact --packageManager=pnpm,npm,yarn

0 commit comments

Comments
 (0)