Repository navigation
chore(cd): rm .npmrc creation and let actions/setup-node handle it - #96
Conversation
📝 WalkthroughWalkthroughCD workflow's npm authentication was changed: the publish job now sets NODE_AUTH_TOKEN from secrets.NPM_TOKEN at the job level so actions/setup-node handles auth. The previous explicit step that wrote an auth token to ~/.npmrc was removed. .gitignore was updated to ignore Sequence Diagram(s)sequenceDiagram
autonumber
participant GitHubActions as GH Actions (cd job)
participant SetupNode as actions/setup-node
participant PublishAction as npm publish step
Note over GitHubActions: OLD flow (removed)
GitHubActions->>GitHubActions: checkout, build, extract package info
GitHubActions->>GitHubActions: write auth token to ~/.npmrc (removed)
GitHubActions->>PublishAction: run publish (uses ~/.npmrc)
rect rgba(0,128,96,0.08)
Note over GitHubActions,SetupNode: NEW flow (current PR)
GitHubActions->>SetupNode: set NODE_AUTH_TOKEN (env from secrets.NPM_TOKEN)
SetupNode->>GitHubActions: configures auth for npm actions
GitHubActions->>PublishAction: run publish (auth via setup-node)
end
Possibly related PRs
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 (1)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #96 +/- ##
=======================================
Coverage 92.11% 92.11%
=======================================
Files 20 20
Lines 431 431
Branches 116 119 +3
=======================================
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
📜 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 (2)
.github/workflows/cd.yml(1 hunks).gitignore(1 hunks)
🔇 Additional comments (1)
.github/workflows/cd.yml (1)
18-20: No issues found.setup-node v6 with registry-url automatically creates .npmrc referencing ${NODE_AUTH_TOKEN}. Your implementation is correct.
Summary by CodeRabbit