Repository navigation
ci: migrate npm releases to trusted publishing - #4
Merged
Merged
Conversation
Use package-scoped GitHub OIDC trust in the Publish environment instead of an expiring personal token. Preserve tag ownership and provenance checks, validate npm support, and tolerate publish-time registry scanning. Document staged credential retirement after a real tokenless release.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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.
Problem and outcome
Replace the expiring personal npm publishing token with package-scoped GitHub Actions OIDC for the coordinated core, React, and Vue releases.
Delivery context
Single repository follow-up to v0.1-dev at 5c177fd. No cross-repository dependencies or package API/version changes. Existing v0.1.0-rc.1 tag is unchanged.
Implementation and validation
Rollout and risks
Save all three npm trusted publisher connections before merging: genlayerlabs/genlayer-transaction-kit, publish.yml, environment Publish, direct npm publish allowed. All three npm connections (core, React, Vue) were saved and verified on 2026-09-09 with these exact values. GitHub build-and-test CI is green.
A dry run or rerun skipping existing versions does not prove OIDC publishing. Verify the next authorized real release before removing the old Publish environment secret, revoking its token, and disallowing bypass tokens. No extra release is authorized or created as an authentication probe.
Full cross-repository E2E is not requested for this workflow-only change. Merged with user authorization after the exact-head landing check. All three npm trusted publisher connections are verified; a real tokenless release and subsequent old-token retirement remain the rollout verification step.