Skip to content

chore: use npm to publish - #89

Merged
saltenasl merged 2 commits into
mainfrom
ls/use-npm-to-publish
Oct 31, 2025
Merged

saltenasl merged 2 commits into
mainfrom
ls/use-npm-to-publish

Conversation

@saltenasl

@saltenasl saltenasl commented Oct 31, 2025 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Chores
    • Updated the continuous deployment workflow to use npm for package publishing, replacing the previous package manager while keeping the publish step targeted to the package directory.
    • No other workflow steps or logic were changed; existing configuration and working-directory behavior remain unchanged.

@saltenasl
saltenasl requested a review from a team as a code owner October 31, 2025 17:12
@coderabbitai

coderabbitai Bot commented Oct 31, 2025 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

The CD workflow's publish step now runs npm publish from the package directory instead of pnpm publish --no-git-checks. Working-directory navigation and other job steps are unchanged.

Sequence Diagram(s)

sequenceDiagram
    participant GitHubActions as GitHub Actions Runner
    participant Repo as Repository
    participant PackageDir as package/*

    rect #f0f8ff
    Note over GitHubActions,Repo: Checkout & Setup
    GitHubActions->>Repo: actions/checkout
    GitHubActions->>GitHubActions: setup-node, auth
    end

    rect #e6ffe6
    Note over GitHubActions,PackageDir: Old flow (before)
    GitHubActions->>PackageDir: cd package/<name>
    GitHubActions->>PackageDir: run `pnpm publish --no-git-checks`
    PackageDir-->>GitHubActions: publish result
    end

    rect #fff5e6
    Note over GitHubActions,PackageDir: New flow (current PR)
    GitHubActions->>PackageDir: cd package/<name>
    GitHubActions->>PackageDir: run `npm publish`
    PackageDir-->>GitHubActions: publish result
    end
Loading

Possibly related PRs

Suggested reviewers

  • Artmann
  • andyjakubowski

Pre-merge checks

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title "chore: use npm to publish" directly reflects the main change in the PR: replacing pnpm with npm for the publish step in the CD workflow. The title is clear, concise, and specific enough that a teammate scanning history would immediately understand the primary change. It avoids vague language and unnecessary noise, making it an effective summary of the changeset.

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

Disabled knowledge base sources:

  • 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 f855548 and 54bb5be.

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

88-93: Resolves critical issue from previous review.

Removing the --no-git-checks flag addresses the past review's concern—this flag is pnpm-specific and not supported by npm publish. The command should now succeed.


43-93: Verify this mixing of pnpm and npm is intentional.

The workflow uses pnpm for install and build but npm for publish. Confirm this is the intended design—typically you'd use one package manager throughout, or there's a specific reason (auth, compatibility, etc.). If this is deliberate, consider documenting why.


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

@codecov

codecov Bot commented Oct 31, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.11%. Comparing base (1cfc40e) to head (54bb5be).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #89   +/-   ##
=======================================
  Coverage   92.11%   92.11%           
=======================================
  Files          20       20           
  Lines         431      431           
  Branches      119      119           
=======================================
  Hits          397      397           
  Misses         34       34           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.github/workflows/cd.yml (1)

43-93: Reconsider mixing package managers in the same workflow.

The workflow uses pnpm for setup (line 43), dependency installation (line 54), and building (line 82), but switches to npm for publishing (line 93). This inconsistency creates maintenance friction and potential behavioral differences.

Either use pnpm throughout (change line 93 to pnpm publish --no-git-checks) or justify the switch with clear rationale.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

Disabled knowledge base sources:

  • 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 1cfc40e and f855548.

📒 Files selected for processing (1)
  • .github/workflows/cd.yml (1 hunks)

Comment thread .github/workflows/cd.yml Resolved
@saltenasl
saltenasl merged commit e31f9df into main Oct 31, 2025
@saltenasl
saltenasl deleted the ls/use-npm-to-publish branch October 31, 2025 17:33
Yggdrasill501 pushed a commit that referenced this pull request Oct 31, 2025
* chore: use npm to publish

* chore: rm --no-git-checks
saltenasl added a commit that referenced this pull request Nov 1, 2025
saltenasl added a commit that referenced this pull request Nov 1, 2025
* Revert "chore: use npm to publish (#89)"

This reverts commit e31f9df.

* Revert "chore: publish packages from their dir instead of root (#88)"

This reverts commit 1cfc40e.

* chore: quote the filter parameter
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