Skip to content

v1.0.4 - #27

Merged
yilmaztayfun merged 2 commits into
release-v1.0from
master
Mar 24, 2026
Merged

v1.0.4#27
yilmaztayfun merged 2 commits into
release-v1.0from
master

Conversation

@yilmaztayfun

@yilmaztayfun yilmaztayfun commented Mar 24, 2026

Copy link
Copy Markdown
Contributor

Summary by Sourcery

Update the npm publish workflow to use Node.js 24 and support OIDC-based trusted publishing.

Build:

  • Grant id-token write permission in the GitHub Actions workflow to enable OIDC trusted publishing to npm.
  • Update the workflow Node.js version to 24 for build and publish jobs.
  • Publish the package to npm without explicitly specifying public access.

…e-when-same-named-csx-exists-in-multiple-component-directories

build updated
@yilmaztayfun yilmaztayfun self-assigned this Mar 24, 2026
@yilmaztayfun
yilmaztayfun requested review from a team March 24, 2026 20:53
@sourcery-ai

sourcery-ai Bot commented Mar 24, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Updates the build-and-publish GitHub Actions workflow to support npm OIDC trusted publishing, modernizes the Node.js runtime version, and simplifies the npm publish command access configuration.

Flow diagram for updated build-and-publish workflow steps

flowchart TD
  A["Trigger workflow (push/tag)"] --> B["Start job build-and-publish on ubuntu-latest"]
  B --> C["Set job permissions: id-token write"]
  C --> D["Setup Node.js 24 via actions/setup-node@v4"]
  D --> E["Install dependencies and run checks"]
  E --> F["Determine version and publish conditions"]
  F --> G{Publish allowed?}
  G -- No --> H["Exit without publishing"]
  G -- Yes --> I["Run npm publish"]
  I --> J["Package published to npm using OIDC trusted publishing"]
Loading

File-Level Changes

Change Details Files
Enable OIDC Trusted Publishing for npm in the GitHub Actions workflow.
  • Added a job-level permissions block under build-and-publish.
  • Granted id-token: write to allow GitHub OIDC token issuance for npm publishing.
.github/workflows/build-and-publish.yml
Modernize Node.js version and adjust npm publish options in CI.
  • Updated actions/setup-node configuration to use Node.js 24 instead of 20.x.
  • Removed the explicit --access public flag from the npm publish command so access is determined by npm configuration or package metadata.
.github/workflows/build-and-publish.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@coderabbitai

coderabbitai Bot commented Mar 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 83495dd5-147f-4d39-b45c-b01102fc6c22

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch master

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@yilmaztayfun
yilmaztayfun merged commit 367f337 into release-v1.0 Mar 24, 2026
3 of 4 checks passed
@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello, 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 updates the application's configuration to grant web fetching permissions for github.com. This change is part of the v1.0.4 release, ensuring the application has the necessary access for its operations.

Highlights

  • Web Permissions: Added "WebFetch(domain:github.com)" to the allowed domains in the Claude settings, enabling the application to fetch data from GitHub.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/build-and-publish.yml
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've found 1 issue, and left some high level feedback:

  • Consider using an LTS or semver range for the Node version (e.g. lts/* or 20.x) rather than pinning to 24, to reduce the chance of unexpected breakage when the workflow runs on environments that might not yet fully support Node 24.
  • Double-check that removing --access public from npm publish is compatible with your package scope and publish history, since scoped packages require --access public on first publish to be publicly visible.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Consider using an LTS or semver range for the Node version (e.g. `lts/*` or `20.x`) rather than pinning to `24`, to reduce the chance of unexpected breakage when the workflow runs on environments that might not yet fully support Node 24.
- Double-check that removing `--access public` from `npm publish` is compatible with your package scope and publish history, since scoped packages require `--access public` on first publish to be publicly visible.

## Individual Comments

### Comment 1
<location path=".github/workflows/build-and-publish.yml" line_range="37-38" />
<code_context>
   build-and-publish:
     runs-on: ubuntu-latest
+
+    permissions:
+      id-token: write  # Required for OIDC Trusted Publishing to npm

     outputs:
</code_context>
<issue_to_address>
**issue (bug_risk):** Job-level permissions may override and drop other required permissions like `contents: read`.

In GitHub Actions, job-level `permissions` override the workflow-level ones instead of merging. With only `id-token: write` set here, defaults like `contents: read` are dropped, which can break `actions/checkout` and any steps needing repo contents. Please either include the other required permissions in this block or remove it and add `id-token: write` to the top-level `permissions` instead.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Comment on lines +37 to +38
permissions:
id-token: write # Required for OIDC Trusted Publishing to npm

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

issue (bug_risk): Job-level permissions may override and drop other required permissions like contents: read.

In GitHub Actions, job-level permissions override the workflow-level ones instead of merging. With only id-token: write set here, defaults like contents: read are dropped, which can break actions/checkout and any steps needing repo contents. Please either include the other required permissions in this block or remove it and add id-token: write to the top-level permissions instead.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

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 updates the .claude/settings.json file to include WebFetch(domain:github.com) in the allowed permissions. Feedback suggests considering a more granular scope for this WebFetch permission, such as api.github.com or specific OIDC token endpoints, to adhere to the principle of least privilege and enhance security.

Comment thread .claude/settings.json
"allow": [
"WebFetch(domain:docs.npmjs.com)"
"WebFetch(domain:docs.npmjs.com)",
"WebFetch(domain:github.com)"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Consider narrowing the scope of the WebFetch permission for github.com. While necessary for OIDC trusted publishing, granting access to the entire github.com domain might be overly broad. If possible, specify a more granular domain or path (e.g., api.github.com or specific OIDC token endpoints) to adhere to the principle of least privilege and reduce potential attack surface.

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