Skip to content

Commit

Permalink
ci: add publish ci (#8937)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wxh16144 authored Dec 24, 2024
1 parent 8fcfe79 commit e34cadc
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/pkg.pr.new.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish Any Commit

on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]

jobs:
build:
runs-on: ubuntu-latest
if: github.repository == 'ant-design/pro-components'

steps:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

# https://github.com/stackblitz-labs/pkg.pr.new#readme
- run: pnpx pkg-pr-new publish './packages/*' --no-template --compact

0 comments on commit e34cadc

Please sign in to comment.