Skip to content

chore(ci): trusted publisher #13768

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

edison1105
Copy link
Member

@edison1105 edison1105 commented Aug 15, 2025

Related to e18e/ecosystem-issues#201

Summary by CodeRabbit

  • Chores
    • Updated release workflow configuration to modify package publishing and tooling management steps.
    • Adjusted authentication handling within the publish stage.
    • Standardized how the build-and-publish command is executed in the pipeline.
    • Other release steps remain unchanged.
    • No changes to application features, UI, or performance.

Copy link

coderabbitai bot commented Aug 15, 2025

Walkthrough

The release workflow was updated to include an "Update npm" step after dependency installation and to remove the NODE_AUTH_TOKEN environment variable from the "Build and publish" step, which now runs pnpm release --publishOnly without that token. Other steps remain unchanged.

Changes

Cohort / File(s) Summary
CI Release Workflow
\.github/workflows/release.yml``
Added "Update npm" step (npm i -g npm@latest) after deps install; removed NODE_AUTH_TOKEN env from "Build and publish"; "Build and publish" runs pnpm release --publishOnly without token; other steps unchanged.

Sequence Diagram(s)

sequenceDiagram
    participant GH as GitHub Actions
    participant Job as Release Job
    participant NPM as npm Registry

    GH->>Job: Checkout
    GH->>Job: Install Node.js
    GH->>Job: Install deps
    GH->>Job: Update npm (npm i -g npm@latest)
    GH->>Job: Build and publish (pnpm release --publishOnly)
    Note over Job: No NODE_AUTH_TOKEN provided
    GH->>Job: Create GitHub release
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~6 minutes

Poem

I thump my paws—release day delight,
New npm polished, shiny and bright.
Tokens hop out, cleaner the trail,
pnpm bounds on, steady, no fail.
Carrot-shaped commits, whiskers in breeze—
Ship it, ship it, with rabbit-y ease! 🥕🐇

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 edison/chore/trustedPublisher

🪧 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

Size Report

Bundles

File Size Gzip Brotli
runtime-dom.global.prod.js 101 kB 38.4 kB 34.6 kB
vue.global.prod.js 159 kB 58.6 kB 52.2 kB

Usages

Name Size Gzip Brotli
createApp (CAPI only) 46.6 kB 18.2 kB 16.7 kB
createApp 54.6 kB 21.2 kB 19.4 kB
createSSRApp 58.8 kB 23 kB 20.9 kB
defineCustomElement 59.6 kB 22.8 kB 20.8 kB
overall 68.7 kB 26.4 kB 24.1 kB

Copy link

pkg-pr-new bot commented Aug 15, 2025

Open in StackBlitz

@vue/compiler-core

npm i https://pkg.pr.new/@vue/compiler-core@13768

@vue/compiler-dom

npm i https://pkg.pr.new/@vue/compiler-dom@13768

@vue/compiler-sfc

npm i https://pkg.pr.new/@vue/compiler-sfc@13768

@vue/compiler-ssr

npm i https://pkg.pr.new/@vue/compiler-ssr@13768

@vue/reactivity

npm i https://pkg.pr.new/@vue/reactivity@13768

@vue/runtime-core

npm i https://pkg.pr.new/@vue/runtime-core@13768

@vue/runtime-dom

npm i https://pkg.pr.new/@vue/runtime-dom@13768

@vue/server-renderer

npm i https://pkg.pr.new/@vue/server-renderer@13768

@vue/shared

npm i https://pkg.pr.new/@vue/shared@13768

vue

npm i https://pkg.pr.new/vue@13768

@vue/compat

npm i https://pkg.pr.new/@vue/compat@13768

commit: 2d6ce0a

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: 1

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

29-35: Nit: registry-url not strictly required for Trusted Publishing

With npm Trusted Publishing (OIDC), the registry-url input is optional. Keeping it is harmless, but you can simplify by removing it if you prefer a minimal config.

Apply if you want to simplify:

       - name: Install Node.js
         uses: actions/setup-node@v4
         with:
           node-version-file: '.node-version'
-          registry-url: 'https://registry.npmjs.org'
           cache: 'pnpm'

39-41: Pin npm version instead of floating latest

Using npm@latest makes the workflow non-reproducible and can break unexpectedly. For Trusted Publishing you just need a recent npm (v10+). Pin a major (or a specific version your team standardizes on).

Apply this change:

-      - name: Update npm
-        run: npm i -g npm@latest
+      - name: Update npm
+        run: npm i -g npm@10

Optionally log versions for easier debugging:

       - name: Install deps
         run: pnpm install

       - name: Update npm
-        run: npm i -g npm@latest
+        run: |
+          npm i -g npm@10
+          node -v
+          npm -v
+          pnpm -v
📜 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 c875019 and 2d6ce0a.

📒 Files selected for processing (1)
  • .github/workflows/release.yml (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: Redirect rules
  • GitHub Check: Header rules
  • GitHub Check: Pages changed
🔇 Additional comments (1)
.github/workflows/release.yml (1)

17-21: Good: required OIDC permissions are set for Trusted Publishing

id-token: write is present, which is necessary for npm Trusted Publishing via GitHub Actions OIDC. No action needed here.

@edison1105 edison1105 added the ready to merge The PR is ready to be merged. label Aug 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge The PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant