-
Notifications
You must be signed in to change notification settings - Fork 3
chore: update-npm-version-in-ci #497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
WalkthroughAdded npm upgrade and version-check steps to the publish GitHub Actions workflow and updated the release script in package.json to run an NX build target before publishing and tagging. Changes
Sequence Diagram(s)sequenceDiagram
participant CI as GitHub Actions
participant Runner as Job Runner
participant NPM as npm
participant NX as nx
participant Registry as npm Registry
CI->>Runner: start publish job
Runner->>NPM: npm install npm@latest -g
Runner->>NPM: npm --version
Runner->>NX: pnpm nx run-many -t build --no-agents
Runner->>Registry: pnpm publish -r --no-git-checks (uses NPM_TOKEN)
Runner->>CI: changeset tag
note right of Runner `#e6f7ff`: New/changed steps highlighted: npm upgrade, version check, NX build before publish
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2025-10-28T14:44:26.883ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (1)
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. Comment |
|
View your CI Pipeline Execution ↗ for commit a5012d5
☁️ Nx Cloud last updated this comment at |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
.github/workflows/publish.yml (2)
50-56: Consider centralizing npm upgrade to the setup action.Both the
publish-or-prjob (line 51) andsnapshotjob (line 118) invoke./.github/actions/setup. If npm upgrade is a general pre-requisite for both workflows, moving it into the setup action would reduce duplication and ensure consistency.
55-56: ---Apply npm upgrade steps consistently across both publishing jobs.
The npm upgrade commands at lines 55–56 are correct and appropriately placed before the
publish-or-prjob's publish step. However, verification confirms that thesnapshotjob (lines 99–129) also performs npm publishing at line 129 (pnpm publish -r ...) but lacks the corresponding npm upgrade steps. For consistency and to ensure both jobs publish with the latest npm version, add the same upgrade commands to thesnapshotjob before its publish step.
533d546 to
a5012d5
Compare
@forgerock/davinci-client
@forgerock/oidc-client
@forgerock/protect
@forgerock/sdk-types
@forgerock/sdk-utilities
@forgerock/iframe-manager
@forgerock/sdk-logger
@forgerock/sdk-oidc
@forgerock/sdk-request-middleware
@forgerock/storage
commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project status has failed because the head coverage (18.79%) is below the target coverage (40.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #497 +/- ##
=======================================
Coverage 18.79% 18.79%
=======================================
Files 140 140
Lines 27640 27640
Branches 980 980
=======================================
Hits 5195 5195
Misses 22445 22445 🚀 New features to boost your workflow:
|
|
Deployed 53f8f45 to https://ForgeRock.github.io/ping-javascript-sdk/pr-497/53f8f455aef043dc99e3b4c8c69af83d6f2c986c branch gh-pages in ForgeRock/ping-javascript-sdk |
📦 Bundle Size Analysis📦 Bundle Size Analysis🆕 New Packages🆕 @forgerock/device-client - 9.2 KB (new) 13 packages analyzed • Baseline from latest Legend🆕 New package ℹ️ How bundle sizes are calculated
🔄 Updated automatically on each push to this PR |
JIRA Ticket
N/A
Description
update npm version explicitly before publishing.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.