Skip to content

Conversation

JounQin
Copy link
Member

@JounQin JounQin commented Aug 22, 2025

Important

Upgrade npm and remove unused environment variables in release.yml for improved release workflow.

  • Workflow Changes:
    • Add step to upgrade npm to latest version in release.yml.
    • Remove NPM_CONFIG_PROVENANCE and NPM_TOKEN environment variables from release.yml.

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

Summary by CodeRabbit

  • Chores
    • Upgraded the package manager used in release automation to the latest version to improve build compatibility and stability.
    • Streamlined publishing configuration by removing redundant environment settings to reduce friction during releases.
    • No user-facing changes; this update only impacts internal release infrastructure.

Copy link

changeset-bot bot commented Aug 22, 2025

⚠️ No Changeset found

Latest commit: d09acdf

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

Copy link

coderabbitai bot commented Aug 22, 2025

Note

Other AI code review bot(s) detected

CodeRabbit 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.

Walkthrough

The release workflow adds a step to upgrade npm after setting up Node.js LTS and removes NPM_CONFIG_PROVENANCE and NPM_TOKEN environment variables from the publish step. No source code or exported entities are modified.

Changes

Cohort / File(s) Summary
CI workflow adjustments
\.github/workflows/release.yml
Inserted “Upgrade npm” step running npm install -g npm@latest after Node setup; removed NPM_CONFIG_PROVENANCE and NPM_TOKEN from the publish step’s env; other workflow content unchanged.

Sequence Diagram(s)

sequenceDiagram
    autonumber
    actor Dev as Developer
    participant GH as GitHub Actions Runner
    participant Node as Setup Node.js LTS
    participant NPM as npm CLI
    participant Pub as Release/Publish Step

    Dev->>GH: Push/Tag triggers release workflow
    GH->>Node: actions/setup-node@... (LTS)
    Note over Node,GH: Node.js runtime prepared

    GH->>NPM: npm install -g npm@latest
    Note over NPM,GH: New step: Upgrade npm

    GH->>Pub: Create Release PR / Publish
    Note over Pub,GH: Env updated (no NPM_CONFIG_PROVENANCE, no NPM_TOKEN)
    Pub-->>Dev: Release PR created or publish executed
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

I thump my paws on CI ground,
A fresher npm hops around.
Two env carrots, plucked away—
The pipeline trims for lighter play.
With tidy steps and versions new,
This bunny ships a cleaner brew. 🐇✨

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.

✨ 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.

Copy link

pkg-pr-new bot commented Aug 22, 2025

Open in StackBlitz

npm i https://pkg.pr.new/eslint-config-prettier@345

commit: d09acdf

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.

Caution

Changes requested ❌

Reviewed everything up to d09acdf in 1 minute and 8 seconds. Click for details.
  • Reviewed 20 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 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:48
  • Draft comment:
    Removal of NPM_TOKEN and NPM_CONFIG_PROVENANCE is intentional for trusted publishing – verify that npm publishing works without these.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 0% <= threshold 50% The comment is asking the PR author to verify that npm publishing works without certain tokens, which is against the rules. It is not making a specific code suggestion or asking for a test to be written. Therefore, this comment should be removed.

Workflow ID: wflow_PIpkm6ijeVuqNgit

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

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (3)
.github/workflows/release.yml (3)

34-36: Pin npm to a safe minimum compatible with Trusted Publishing (avoid npm@latest).

To reduce surprise from npm breaking changes while still meeting OIDC requirements, pin to a compatible floor (>= 11.5.1). Example:

-      - name: Upgrade npm
-        run: npm install -g npm@latest
+      - name: Ensure npm supports Trusted Publishing
+        run: npm install -g npm@^11.5.1

Re: the earlier suggestion to pin npm@9.8.1 — that version will not work with npm’s Trusted Publishing, which requires npm CLI 11.5.1 or newer. (docs.npmjs.com)


34-36: Optional: Skip the upgrade when the runner already has a new-enough npm.

Saves CI time and avoids mutating the global toolchain unnecessarily:

-      - name: Upgrade npm
-        run: npm install -g npm@latest
+      - name: Ensure npm supports Trusted Publishing
+        run: |
+          REQUIRED_MINOR=5
+          MAJOR=$(npm -v | cut -d. -f1)
+          MINOR=$(npm -v | cut -d. -f2)
+          if [ "$MAJOR" -lt 11 ] || { [ "$MAJOR" -eq 11 ] && [ "$MINOR" -lt "$REQUIRED_MINOR" ]; }; then
+            npm install -g npm@^11.5.1
+          fi

34-36: Optional: Make the target registry explicit in setup-node.

Not required, but being explicit can prevent accidental publishes to a custom/defaulted registry in other contexts. You can add this to the existing “Setup Node.js LTS” step:

with:
  node-version: lts/*
  cache: yarn
  registry-url: 'https://registry.npmjs.org'
📜 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 0637286 and d09acdf.

📒 Files selected for processing (1)
  • .github/workflows/release.yml (1 hunks)
🔇 Additional comments (1)
.github/workflows/release.yml (1)

34-36: Trusted Publishing alignment: this step and removal of NPM_TOKEN/PROVENANCE look correct (OIDC-only).

With permissions.id-token: write already set and npm upgraded, npm CLI will authenticate via OIDC for publishes; no NPM_TOKEN or NPM_CONFIG_PROVENANCE is needed, and provenance is generated automatically. Ensure your package is configured on npmjs.com with this repo and workflow filename (release.yml) as the Trusted Publisher. (docs.npmjs.com)

@JounQin JounQin merged commit 07829b4 into main Aug 22, 2025
21 checks passed
@JounQin JounQin deleted the JounQin-patch-1 branch August 22, 2025 04:26
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