Skip to content

Validate npm OIDC publish flow with prerelease release lane#8

Merged
Ring-wdr merged 1 commit intomainfrom
chore/npm-oidc-prerelease-publish
Mar 25, 2026
Merged

Validate npm OIDC publish flow with prerelease release lane#8
Ring-wdr merged 1 commit intomainfrom
chore/npm-oidc-prerelease-publish

Conversation

@Ring-wdr
Copy link
Owner

Summary

  • add a GitHub Actions publish workflow for npm OIDC trusted publishing
  • route prerelease versions to the next dist-tag instead of latest
  • bump the package version to 0.1.35-rc.0 for release-path validation

Validation

  • npm run build
  • npm test
  • README or docs updated when behavior changed

Maintainer Notes

  • This is an infrastructure-only change for release validation.
  • After merge, publish should be exercised by creating GitHub Release v0.1.35-rc.0 from main.
  • Do not relax branch protection, required reviews, or required CI checks to merge this PR.

Add a release-driven publish workflow that uses GitHub OIDC, verifies the release tag against package.json, and routes prerelease versions to the npm next dist-tag. Bump the package version to 0.1.35-rc.0 so the pipeline can be exercised without moving latest.

Constraint: Branch protection requires release validation to flow through the normal PR and main branch path
Rejected: Publish 0.1.35 directly to latest | no consumer-facing package change yet
Rejected: Skip real publish and rely on dry-run only | does not validate trusted publisher OIDC
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Keep prerelease versions on the next dist-tag until a consumer-visible package change is ready for latest
Tested: npm run build; npm test; npm pack --dry-run
Not-tested: End-to-end GitHub Release triggered npm publish via OIDC until merged and released from main
@Ring-wdr Ring-wdr merged commit 7a96e6c into main Mar 25, 2026
4 checks passed
@Ring-wdr Ring-wdr deleted the chore/npm-oidc-prerelease-publish branch March 25, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant