Skip to content

Commit abdd1c5

Browse files
authored
chore: add pkg.pr.new (#521)
ant-design/ant-design#49647 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Added a new workflow for automated publishing of commits, ensuring streamlined and efficient deployment. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent f1e546d commit abdd1c5

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish Any Commit
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v4
11+
12+
- run: corepack enable
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 20
16+
17+
- name: Install dependencies
18+
run: npm install
19+
20+
- name: Build
21+
run: npm run prepublishOnly
22+
23+
- run: npx pkg-pr-new publish

0 commit comments

Comments
 (0)