Repository navigation
feat(cd): publish to npm - #73
Conversation
📝 WalkthroughWalkthroughThe publish workflow (.github/workflows/cd.yml) was changed to publish to the public npm registry: authentication now uses Sequence Diagram(s)sequenceDiagram
participant Workflow as Publish Workflow
participant OldReg as GitHub Packages (old)
participant NewReg as npm Registry (new)
rect rgb(250,250,255)
Note over Workflow,OldReg: Previous flow
Workflow->>OldReg: configure npm with GITHUB_TOKEN -> npm.pkg.github.com
Workflow->>OldReg: pnpm publish --filter ... --no-git-checks
end
rect rgb(245,255,245)
Note over Workflow,NewReg: New flow
Workflow->>NewReg: configure npm with NPM_TOKEN -> registry.npmjs.org
Workflow->>NewReg: pnpm publish --filter ... --no-git-checks
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 (2)
🧰 Additional context used📓 Path-based instructions (1)**/*.{md,yml,yaml}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🔇 Additional comments (2)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #73 +/- ##
==========================================
- Coverage 92.88% 92.76% -0.13%
==========================================
Files 23 23
Lines 773 774 +1
Branches 221 221
==========================================
Hits 718 718
- Misses 55 56 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
do not merge until I update the token (waiting for the owner to issue it) |
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 (3)
CONTRIBUTING.md (1)
121-126: Update documentation to reflect npm registry publishing.Line 121 still references "GitHub Packages" but the workflow now publishes to the public npm registry. This creates confusion for contributors.
-The package will be automatically published to GitHub Packages by the `cd.yml` workflow when the release is published. The workflow: +The package will be automatically published to npm by the `cd.yml` workflow when the release is published. The workflow:.github/workflows/cd.yml (2)
7-9: Remove unnecessary GitHub Packages permission.The
packages: writepermission is for GitHub Packages and is no longer needed for npm registry publishing.permissions: contents: read - packages: write
12-13: Update job name to reflect npm publishing.Job name still references "GitHub Packages" but now publishes to npm registry.
name: Publish to GitHub Packages + name: Publish to npm
📜 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 ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (2)
.github/workflows/cd.yml(1 hunks)CONTRIBUTING.md(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{md,yml,yaml}
📄 CodeRabbit inference engine (CLAUDE.md)
Use Prettier formatting for Markdown and YAML files
Files:
CONTRIBUTING.md
🔇 Additional comments (1)
.github/workflows/cd.yml (1)
83-85: Registry configuration looks good.Correctly configures npm registry and uses NPM_TOKEN for authentication.
Verify that
NPM_TOKENsecret is configured in the GitHub repository settings.
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)
7-9: Remove unnecessarypackages: writepermission.Permission is for GitHub Packages, which is no longer used; only
contents: readis needed for checkout.permissions: contents: read - packages: write
📜 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(2 hunks)
🔇 Additional comments (1)
.github/workflows/cd.yml (1)
16-16: Workflow migration looks solid.Environment context and npm registry configuration are correct. Step name properly updated. Ready once NPM_TOKEN is provided and issue with job naming resolved.
Also applies to: 84-89
| jobs: | ||
| publish: | ||
| name: Publish to GitHub Packages | ||
| name: Publish to npm |
There was a problem hiding this comment.
| name: Publish to npm | |
| name: Publish to NPM |


Summary by CodeRabbit