perf: sequential publish in single job with OIDC token caching - #88
Merged
Conversation
Port @fluent-iterable/async-sema into the monorepo workspace. Includes source, tests, and config files adapted to the codibre pattern. Added to publish matrix in .github/workflows/publish.yaml.
Only lts matters
- Replace matrix strategy with a single job running packages sequentially - Discover non-private packages dynamically via pnpm workspace scan - Obtain OIDC token once and reuse within 4-minute window (token TTL ~5 min) - Eliminates per-job runner overhead (~30s × N jobs → one setup)
Farenheith
requested review from
Dodt,
danielgalleni,
douglasdrdc,
fgabrielsilva and
pedrosodre
as code owners
August 21, 2026 10:27
Track published vs skipped libs separately and report correctly.
Farenheith
force-pushed
the
feat/sequential-publish-pipeline
branch
from
August 21, 2026 10:50
209194f to
b605852
Compare
Resolved merge conflicts: - Kept sequential publish job (no matrix strategy) from feature branch - Updated async-sema version to 0.2.0 per master
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace the matrix-strategy publish pipeline (one runner per library) with a single job that publishes packages sequentially. This eliminates per-runner overhead (~30s × N) and caches the OIDC JWT for reuse across libraries.
Changes
libs/*/for non-private packages at runtimeKey details
Token refresh logic:
for lib in libs/*/; do node -p "require('./${lib}package.json').name"filtered byprivate != truePublish summary
Accurate reporting of published vs skipped libraries:
Build & lint
All passing on the branch.