Publish npm packages on release via OIDC trusted publishing#1365
Merged
joshunrau merged 4 commits intoJun 2, 2026
Conversation
Contributor
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (8)
WalkthroughThis PR introduces automated npm publishing to the release workflow, adds infrastructure for discovering publishable packages, refactors version increment tooling to use dynamic discovery, and synchronizes all package versions to 1.16.4 alongside a pnpm upgrade to 10.34.1. ChangesNPM Publishing Automation and Version Alignment
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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
Extends the release workflow to publish our public npm packages — @opendatacapture/runtime-v1,
@opendatacapture/instrument-bundler, @opendatacapture/serve-instrument, and
@opendatacapture/instrument-guidelines — automatically whenever a release is due, instead of
publishing them by hand. Which packages get published is driven by a publishConfig marker in each
package.json (added on main in 0e1e5bb), so there's no hardcoded list to maintain. Authentication
uses npm OIDC trusted publishing — no long-lived NPM_TOKEN.
Also, going forward all versions will be synced.
Changes
Enumerates workspace packages via pnpm ls -r and jq-filters to the non-private ones that declare
publishConfig, emitting nameversionpath.
whatever list-publishable.sh discovers, so version bumps stay in sync with the publish set
automatically.
and needs: [build, configure]. It builds each publishable package's dependency closure (turbo
filters; packages without a build script are skipped) and publishes each via pnpm --filter
publish, skipping versions already on npm so re-runs are idempotent. The release job now also needs:
publish-npm.
and no NPM_TOKEN — pnpm authenticates through OIDC and emits provenance automatically.
10.13 (which also fixed the setup-node _authToken placeholder → 404 issue); latest 10.x avoids the
open pnpm 11 OIDC bug.
Prerequisites / notes
filename release.yaml. ✅ (done)
--frozen-lockfile installs are expected to keep working.
Verification
concrete versions.
Summary by CodeRabbit