Skip to content

v1.0.4#23

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

v1.0.4#23
yilmaztayfun merged 3 commits into
release-v1.0from
master

Conversation

@yilmaztayfun

@yilmaztayfun yilmaztayfun commented Mar 24, 2026

Copy link
Copy Markdown
Contributor

Summary by Sourcery

Simplify and harden the release publishing workflow by introducing explicit per-registry version checks and separating NPM and GitHub Packages publish steps, while centralizing the final publish result reporting.

CI:

  • Add an explicit NPM version existence check step that can skip publishing unless force publishing is requested.
  • Switch NPM publishing to use the JS-DevTools/npm-publish action with OIDC Trusted Publishing instead of a custom shell script.
  • Simplify GitHub Packages publishing with a dedicated step that respects the force_publish flag and avoids failing when versions already exist.
  • Introduce a final workflow step that aggregates NPM and GitHub Packages outcomes into a single publish result flag.

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

10 csx update picks wrong file when same named csx exists in multiple component directories
@yilmaztayfun yilmaztayfun self-assigned this Mar 24, 2026
@yilmaztayfun yilmaztayfun requested review from a team March 24, 2026 12:14
@sourcery-ai

sourcery-ai Bot commented Mar 24, 2026

Copy link
Copy Markdown

Reviewer's Guide

Refactors the build-and-publish workflow to separate NPM and GitHub publishing, add a pre-publish NPM version check with optional force override, and simplify how publish success is tracked across registries.

File-Level Changes

Change Details Files
Add a dedicated NPM version check step with optional force override before publishing.
  • Introduce a 'Check version on NPM' step that reads the package name from package.json and uses the computed version output.
  • Set a 'skip' output flag to control whether NPM publish should run, based on whether the version already exists on npmjs.
  • Support a 'force_publish' workflow input to bypass the version-exists check and always attempt to publish.
.github/workflows/build-and-publish.yml
Simplify and separate NPM and GitHub publishing logic, and centralize publish result reporting.
  • Replace the previous all-in-one shell script publish step with two distinct steps: one using JS-DevTools/npm-publish@v3 for NPM (using OIDC trusted publishing) and one shell-based publish for GitHub Packages.
  • Add conditional logic so each publish step runs only for the appropriate registry_target values and respects the precomputed 'skip' flag and force_publish behavior.
  • Introduce a 'Set publish result' step that inspects the outcomes of the NPM and GitHub publish steps and sets a single 'published' output flag accordingly.
.github/workflows/build-and-publish.yml
Add Claude configuration settings to the repository.
  • Introduce a new .claude/settings.json file to hold AI assistant configuration (exact contents not shown in diff).
.claude/settings.json

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: 195b66c9-9ef5-484e-836f-d303bd572589

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 0242c8c 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 introduces a new configuration file for the Claude environment, enabling specific web fetching capabilities. This change is foundational for any future features or integrations that require accessing documentation from docs.npmjs.com.

Highlights

  • Claude Configuration: Added a new .claude/settings.json file to configure permissions for the Claude environment, specifically allowing WebFetch operations from docs.npmjs.com.

🧠 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 left some high level feedback:

  • In the Set publish result step, a GitHub-only run where the version already exists will exit 0 in github-publish without setting outputs.published, so GH_OK is empty and NPM_OK is skipped, causing the workflow to report published=false even though the no-op was intentional; consider explicitly setting published=false (or skipped) in that branch and adjusting the final logic to treat that case as a non-failure.
  • The Publish to NPM (OIDC Trusted Publishing) step switches from a direct npm publish using an OIDC token to JS-DevTools/npm-publish@v3 but no token/NODE_AUTH_TOKEN is provided; if you still intend to rely on OIDC Trusted Publishing, you may need to either reintroduce the explicit OIDC token and pass it into the action or revert to the npm publish CLI flow that works with npm’s OIDC integration.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- In the `Set publish result` step, a GitHub-only run where the version already exists will exit 0 in `github-publish` without setting `outputs.published`, so `GH_OK` is empty and `NPM_OK` is `skipped`, causing the workflow to report `published=false` even though the no-op was intentional; consider explicitly setting `published=false` (or `skipped`) in that branch and adjusting the final logic to treat that case as a non-failure.
- The `Publish to NPM (OIDC Trusted Publishing)` step switches from a direct `npm publish` using an OIDC token to `JS-DevTools/npm-publish@v3` but no `token`/`NODE_AUTH_TOKEN` is provided; if you still intend to rely on OIDC Trusted Publishing, you may need to either reintroduce the explicit OIDC token and pass it into the action or revert to the `npm publish` CLI flow that works with npm’s OIDC integration.

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.

@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 adds a configuration file .claude/settings.json, likely for the Claude AI assistant. My review includes a suggestion to add a comment to this file for clarity. However, there is a significant discrepancy between the code change and the pull request's title ('v1.0.4') and description, which details changes to a CI/CD workflow. Please update the PR's metadata to accurately reflect the contained changes to avoid confusion.

Comment thread .claude/settings.json
Comment on lines +1 to +7
{
"permissions": {
"allow": [
"WebFetch(domain:docs.npmjs.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

For maintainability and to provide context for anyone reviewing this file in the future, it's good practice to document why this permission is being granted. Since JSON files don't support native comments, a common pattern is to add a _comment field explaining the purpose of the configuration. This is especially important for security-related settings like WebFetch.

Suggested change
{
"permissions": {
"allow": [
"WebFetch(domain:docs.npmjs.com)"
]
}
}
{
"permissions": {
"allow": [
"WebFetch(domain:docs.npmjs.com)"
]
},
"_comment": "This permission allows the Claude AI assistant to access documentation from docs.npmjs.com to provide more accurate and context-aware suggestions."
}

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