ci: enable npm trusted publishing with OIDC - #47
Conversation
📝 WalkthroughWalkthroughThe release pipeline now uses Node.js 24 and pnpm to install, build, stage-publish packages, and generate GitHub release notes. The workflow adds OIDC token permission and removes the separate npm publishing job. ChangesRelease pipeline
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant GitHub Actions
participant pnpm
participant Package Registry
participant GitHub Releases
GitHub Actions->>pnpm: Install dependencies and build
GitHub Actions->>pnpm: Run pub:release
pnpm->>Package Registry: Publish staged packages
GitHub Actions->>GitHub Releases: Generate release notes
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Checkov (3.3.8).github/workflows/release.yamlTraceback (most recent call last): packages/core/package.jsonTraceback (most recent call last): 🔧 ESLint
ESLint install timed out. The project may have too many dependencies for the sandbox. 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/release.yaml:
- Around line 21-22: Pin all privileged release tooling to reviewed immutable
versions: update actions/checkout at .github/workflows/release.yaml lines 16-17,
pnpm/action-setup at lines 21-22, and actions/setup-node at lines 24-28 to
verified full-length commit SHAs; update the changelogithub invocation at lines
40-41 to use an exact reviewed version such as changelogithub@14.0.0 or execute
a locked local dependency via pnpm.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 29cbc663-ac8a-4722-8e57-7e111795465f
📒 Files selected for processing (2)
.github/workflows/release.yamlpackages/core/package.json
commit: |
Summary by CodeRabbit