Repository navigation
ci: publish previews without waiting for tests - #41
Conversation
The publish job waited for the whole CI run. It now builds and checks the packages itself and runs next to the tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
tinyaml
tinyini
tinyjson5
tinylinkify
tinyswap
commit: |
There was a problem hiding this comment.
✅ No new issues found.
Approach: Sound — the preview job builds and checks what it publishes without waiting for the full CI workflow.
Reviewed changes in .github/workflows/pkg-pr-new.yml:
- Preview publishing:
publishrunspnpm buildandpnpm checkbefore packaging its own build output. The existing restriction to same-repository PRs and designated push branches is unchanged. - CI and releases: The test matrix, comparisons, dist tests, and tinyaml Doctor check still run in CI, and the npm release workflow still uses the CI artifact.
- Verification: The publish job succeeded before the Node 22 tests finished, and the preview bot posted install links for all five packages at
bd881b3.
No P0 or P1 findings.
gpt-6.2-sol(high) | 𝕏
Latest result Pull request merged. Final answersSession Pull request merged. |

The pkg.pr.new preview showed up only after the slowest CI job finished.
publishhadneeds: check, which is the wholeci.ymlcall, so it waited for the serial package tests (test (26)took 169 s in run 44876479207) even though thebuildjob it tookdistfrom was done after 35 s.needson a reusable workflow call waits for every job in it, so it can't point atbuildalone. This PR haspublishrunpnpm buildandpnpm checkitself, then publish, next to CI. A broken build or a failing check still publishes nothing. The test matrix,compareanddiststill run inci.ymlas before; they just no longer hold the preview back. Thecheckjob's tinyaml doctor run stays in CI only.Validation:
actionlintpasses on the workflow. The preview job on this PR is the real check.🤖 Generated with Claude Code