Skip to content

Commit f211594

Browse files
authored
ci: add pkg.pr.new (#3494)
1 parent b1ca268 commit f211594

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

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

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

0 commit comments

Comments
 (0)