Skip to content

Conversation

@JounQin
Copy link
Member

@JounQin JounQin commented Aug 18, 2025

https://docs.npmjs.com/trusted-publishers

related e18e/ecosystem-issues#201


Important

Enable trusted publishing in GitHub Actions by updating npm and modifying environment variables in release.yml.

  • CI/CD:
    • Updates .github/workflows/release.yml to enable trusted publishing with npm.
    • Adds step to upgrade npm to the latest version.
    • Removes NPM_CONFIG_PROVENANCE and sets NPM_TOKEN to an empty string in the environment variables.

This description was created by Ellipsis for 8e10ea7. You can customize this summary. It will automatically update as commits are pushed.

Summary by CodeRabbit

  • Chores

    • Release workflow now upgrades npm to the latest version before installing dependencies, improving consistency in build environments.
    • Updated publish step environment configuration by removing provenance settings and secret-based token usage for that step.
  • Notes

    • No user-facing changes.

@JounQin JounQin self-assigned this Aug 18, 2025
@changeset-bot
Copy link

changeset-bot bot commented Aug 18, 2025

⚠️ No Changeset found

Latest commit: 8e10ea7

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link

coderabbitai bot commented Aug 18, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Adds an npm upgrade step to the release workflow after Node.js setup and before dependency installation. Modifies the publish step’s environment by removing provenance configuration and replacing the secret-based NPM_TOKEN with an empty string.

Changes

Cohort / File(s) Summary
CI Workflow: release pipeline
.github/workflows/release.yml
Inserted “Upgrade npm” step (npm install -g npm@latest) after Node setup; updated publish step environment by removing NPM_CONFIG_PROVENANCE and secret NPM_TOKEN, setting NPM_TOKEN: ''.

Sequence Diagram(s)

sequenceDiagram
  participant Dev as Developer
  participant GH as GitHub Actions (release.yml)
  participant npm as npm Registry

  Dev->>GH: Trigger release workflow
  GH->>GH: Setup Node.js
  GH->>GH: Upgrade npm to latest
  GH->>GH: Install dependencies / build
  GH->>npm: Publish package (NPM_TOKEN: '')
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

I hop through YAML fields so bright,
A shiny npm takes new flight.
Secrets hush, the token’s bare—
The pipeline drums its careful air.
Thump-thump, release by moonlit den,
Ship the bits, then hop again! 🐇✨

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between e2c31d2 and 8e10ea7.

📒 Files selected for processing (1)
  • .github/workflows/release.yml (2 hunks)
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch JounQin-patch-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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Aug 18, 2025

Open in StackBlitz

npm i https://pkg.pr.new/eslint-plugin-prettier@757

commit: 8e10ea7

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Looks good to me! 👍

Reviewed everything up to 8e10ea7 in 2 minutes and 0 seconds. Click for details.
  • Reviewed 21 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. .github/workflows/release.yml:34
  • Draft comment:
    Consider pinning the npm version instead of using 'npm@latest' to avoid unexpected breaking changes. Verify that the new npm version’s default behavior (e.g. provenance) aligns with our trusted publishing setup.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 50% <= threshold 50% The comment suggests pinning the npm version instead of using 'npm@latest', which is a specific code suggestion. However, the second part of the comment asks the author to verify the new npm version's behavior, which violates the rule against asking for verification. I will approve the first part of the comment but not the second.
2. .github/workflows/release.yml:48
  • Draft comment:
    Setting NPM_TOKEN to an empty string and removing NPM_CONFIG_PROVENANCE may disable npm authentication and provenance info. If this is intentional for trusted publishing, please add clarifying comments to explain this configuration.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 20% vs. threshold = 50% The comment raises valid security concerns about npm authentication being disabled. However, it's asking for clarification ("If this is intentional...") rather than pointing out a clear issue. It's speculative and asking the author to explain their intention, which violates our rules. The author likely has a reason for this change that we don't understand without more context. The changes could potentially introduce security risks in the npm publishing process. Maybe we should keep the comment to ensure security isn't compromised. While security is important, the comment violates our rules by being speculative and asking for clarification rather than pointing out a clear issue. We don't have enough context to know if this is actually problematic. Delete the comment because it's speculative and asks for clarification rather than pointing out a definitive issue that needs fixing.

Workflow ID: wflow_lB7GLh1nFVzW6b4M

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

@JounQin JounQin merged commit befda88 into main Aug 18, 2025
12 of 13 checks passed
@JounQin JounQin deleted the JounQin-patch-1 branch August 18, 2025 03:32
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.

2 participants