refactor: 重构构建流程,支持并行构建插件,输出 ESM 和 UMD 格式,优化类型声明生成 #252
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: pkg-pr-new | |
| on: | |
| pull_request: | |
| branches: [dev, main] | |
| jobs: | |
| pkg-pr-new: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .node-version | |
| cache: 'yarn' | |
| - name: Install dependencies | |
| run: yarn | |
| - name: Build package | |
| run: yarn build | |
| - name: Publish preview package | |
| run: | | |
| npx pkg-pr-new publish './packages/cherry-markdown' --compact --packageManager=pnpm,npm,yarn |