Skip to content

ci: add publish ci

ci: add publish ci #1

Workflow file for this run

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