-
Notifications
You must be signed in to change notification settings - Fork 2
chore: use npm trust publish #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. WalkthroughUpdates CI configuration: adds Node.js 24 to the Node.js workflow matrix, and switches the release workflow to use npm-release.yml, introducing explicit permissions and removing NPM_TOKEN from secrets while retaining GIT_TOKEN. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Dev as Developer
participant GH as GitHub Actions
participant Rel as Release Job (npm-release.yml)
participant Reg as npm Registry
Dev->>GH: Push tag / release trigger
GH->>Rel: Start workflow (with explicit permissions)
note over GH,Rel: contents/deployments/issues/pull-requests/id-token: write
Rel->>Reg: Publish package (auth via configured token)
Reg-->>Rel: Publish result
Rel-->>GH: Job status
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🔇 Additional comments (1)
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 |
Summary of ChangesHello @fengmk2, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request primarily focuses on a minor code formatting improvement within Highlights
Ignored Files
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the GitHub Actions workflow to use npm's trusted publishing mechanism and adds Node.js 24 support to the test matrix.
- Migrates from manual NPM token authentication to npm's trusted publishing system
- Adds required OIDC permissions for trusted publishing
- Updates Node.js test matrix to include version 24
Reviewed Changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
.github/workflows/release.yml | Configures OIDC permissions and switches to npm-release workflow for trusted publishing |
.github/workflows/nodejs.yml | Adds Node.js 24 to the test version matrix |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request includes a change that removes the trailing newline from src/index.ts
. It is a standard practice to have a newline at the end of files for compatibility with various tools and to follow POSIX standards. I've added a suggestion to restore it.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #9 +/- ##
=======================================
Coverage 97.22% 97.22%
=======================================
Files 1 1
Lines 72 72
Branches 16 16
=======================================
Hits 70 70
Misses 2 2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
🎉 This PR is included in version 3.0.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary by CodeRabbit