Skip to content

Commit c5cf891

Browse files
committed
chore(ci): fold pkg-pr-new into pr-checks via shared artifact
Delete the standalone pkg-pr-new.yml workflow and add an equivalent pkg-pr-new job inside pr-checks.yml that downloads the dist artifact uploaded by the build job. Eliminates ~25s of duplicate install+build CI minutes per PR push. Drops the legacy 'labeled' pull_request trigger from the original workflow - empirically confirmed it was firing but not load-bearing. PR #183 (NumberField) alone republished 4 times on the same SHA because taxonomy labels (C: NumberField, E: createNumberField, E: createInput) were added one at a time, each triggering a fresh publish. Dropping 'labeled' stops that waste entirely. Uses the composite setup action (Stage 1c) for checkout/pnpm/node. actions/upload-artifact@v4 and actions/download-artifact@v4 with retention-days: 1 for minimal artifact lifetime. Stage 1d of v0 CI build time spec. Completes Stage 1.
1 parent 23f5cf6 commit c5cf891

File tree

2 files changed

+22
-37
lines changed

2 files changed

+22
-37
lines changed

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

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/pr-checks.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ jobs:
5959
- uses: ./.github/actions/setup
6060
- name: Build packages
6161
run: pnpm build
62+
- name: Upload dist artifact
63+
uses: actions/upload-artifact@v4
64+
with:
65+
name: packages-dist
66+
path: |
67+
packages/0/dist
68+
packages/paper/dist
69+
retention-days: 1
70+
if-no-files-found: error
6271

6372
changes:
6473
runs-on: ubuntu-latest
@@ -101,3 +110,16 @@ jobs:
101110
- uses: actions/checkout@v4
102111
- uses: vuetifyjs/setup-action@master
103112
- run: pnpm run build:play
113+
114+
pkg-pr-new:
115+
needs: [build]
116+
runs-on: ubuntu-latest
117+
steps:
118+
- uses: ./.github/actions/setup
119+
- name: Download dist artifact
120+
uses: actions/download-artifact@v4
121+
with:
122+
name: packages-dist
123+
path: packages
124+
- name: Publish preview
125+
run: pnpm dlx pkg-pr-new publish --compact --pnpm './packages/0' --only-templates

0 commit comments

Comments
 (0)