Repository navigation
chore: use npm to publish - #89
Conversation
📝 WalkthroughWalkthroughThe CD workflow's publish step now runs 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
Possibly related PRs
Suggested reviewers
Pre-merge checks❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🔇 Additional comments (2)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
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.
📒 Files selected for processing (1)
.github/workflows/cd.yml(1 hunks)
* chore: use npm to publish * chore: rm --no-git-checks
Summary by CodeRabbit