Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 15, 2025

Bumps actions/setup-node from 4 to 5.

Release notes

Sourced from actions/setup-node's releases.

v5.0.0

What's Changed

Breaking Changes

This update, introduces automatic caching when a valid packageManager field is present in your package.json. This aims to improve workflow performance and make dependency management more seamless. To disable this automatic caching, set package-manager-cache: false

steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
  with:
    package-manager-cache: false

Make sure your runner is on version v2.327.1 or later to ensure compatibility with this release. See Release Notes

Dependency Upgrades

New Contributors

Full Changelog: actions/setup-node@v4...v5.0.0

v4.4.0

What's Changed

Bug fixes:

Enhancement:

Dependency update:

New Contributors

Full Changelogactions/setup-node@v4...v4.4.0

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Summary by CodeRabbit

  • Chores
    • Updated documentation CI workflows: aligned Node.js setup with the latest supported action and disabled package-manager caching.
    • Added extra docs validation steps (typechecking, spellcheck, format check, and build) to the docs-check pipeline.
    • No changes to product behavior or public APIs; routine maintenance to keep pipelines reliable.

Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 5.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](actions/setup-node@v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Sep 15, 2025
@dependabot dependabot bot requested a review from a team as a code owner September 15, 2025 06:08
@dependabot dependabot bot added github_actions Pull requests that update GitHub Actions code dependencies Pull requests that update a dependency file labels Sep 15, 2025
@dependabot dependabot bot requested review from akaladarshi and hanabi1224 and removed request for a team September 15, 2025 06:08
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 15, 2025

Walkthrough

Bumps actions/setup-node from @v4 to @v5 across multiple GitHub Actions workflows, adds package-manager-cache: false to the setup inputs, and appends several run steps (yarn typecheck, yarn spellcheck, yarn format-check, yarn build) to the docs-check workflow. Node version remains 20.

Changes

Cohort / File(s) Summary of Changes
Docs workflows: setup-node v5 + cache flag
.github/workflows/docs-auto-update.yml, .../docs-deploy.yml
Updated actions/setup-node from @v4 to @v5; added package-manager-cache: false under with; kept node-version: 20; no other steps changed.
Docs check: setup-node v5 + added checks
.github/workflows/docs-check.yml
Updated actions/setup-node from @v4 to @v5; added package-manager-cache: false; after yarn --immutable added yarn typecheck, yarn spellcheck, yarn format-check, yarn build.
Scripts lint: setup-node v5 + cache flag
.github/workflows/scripts-lint.yml
Updated actions/setup-node from @v4 to @v5; added package-manager-cache: false; retained node-version: 20 and existing lint steps.

Sequence Diagram(s)

sequenceDiagram
  participant GH as GitHub Actions
  participant Setup as actions/setup-node@v5
  participant Corepack as corepack/yarn
  participant Yarn as yarn scripts
  Note over GH,Setup #E8F0FF: Workflow start (docs-check)
  GH->>Setup: run setup-node (node-version: 20, package-manager-cache: false)
  Setup-->>GH: node available
  GH->>Corepack: corepack enable
  Corepack-->>GH: corepack ready
  GH->>Yarn: yarn --immutable
  Yarn-->>GH: install OK
  Note over GH,Yarn #E8F8E8: New additional checks
  GH->>Yarn: yarn typecheck
  GH->>Yarn: yarn spellcheck
  GH->>Yarn: yarn format-check
  GH->>Yarn: yarn build
  Yarn-->>GH: checks complete
  Note over GH #FFF4E6: Previous flow ended after `yarn --immutable` (no additional checks)
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • akaladarshi
  • LesnyRumcajs

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title "chore(deps): bump actions/setup-node from 4 to 5" succinctly and accurately describes the primary change in the PR (upgrading actions/setup-node from v4 to v5), follows conventional commit style, and is clear and specific enough for a teammate scanning history to understand the main intent.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch dependabot/github_actions/actions/setup-node-5

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.


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

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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 (4)
.github/workflows/docs-check.yml (1)

34-39: Guard against unintended v5 auto-caching; explicitly set package-manager-cache.

setup-node v5 auto-enables package-manager caching when package.json has a packageManager field. Your prior config intentionally left caching off (comment referencing issue 1027). To preserve behavior and avoid surprise cache interactions, disable it explicitly.

Apply this diff:

 - uses: actions/setup-node@v5
   with:
     node-version: 20
+    package-manager-cache: false
     # See https://github.com/actions/setup-node/issues/1027
     # cache: yarn

Alternatively, if you want caching, set a scoped dependency path (example for docs):

with:
  node-version: 20
  package-manager-cache: true
  cache-dependency-path: docs/yarn.lock

Please confirm whether docs/package.json declares a packageManager field; if yes, v5 would currently auto-cache without the explicit flag. Also confirm you’re not on self-hosted runners (v5 requires runner v2.327.1+).

.github/workflows/docs-deploy.yml (1)

32-37: Disable or scope v5’s automatic package-manager cache to avoid behavior drift.

Same concern as docs-check: v5 will auto-cache if packageManager is present. Explicitly disable to match previous behavior, or scope it to docs.

 - uses: actions/setup-node@v5
   with:
     node-version: 20
+    package-manager-cache: false
 # See https://github.com/actions/setup-node/issues/1027
 # cache: yarn

If opting in to caching, prefer:

with:
  node-version: 20
  package-manager-cache: true
  cache-dependency-path: docs/yarn.lock

Confirm whether caching is desired during deploy and that it won’t affect build determinism.

.github/workflows/docs-auto-update.yml (1)

18-23: Explicitly control v5 auto-cache; this job runs at repo root and may pick the wrong lockfile.

This workflow doesn’t set a working-directory for the Yarn steps, so auto-detection may target the repo root package.json/lockfile instead of docs. Disable caching or specify the dependency path.

 - uses: actions/setup-node@v5
   with:
     node-version: 20
+    package-manager-cache: false

If enabling caching, scope it:

with:
  node-version: 20
  package-manager-cache: true
  cache-dependency-path: |
    yarn.lock
    docs/yarn.lock

Please confirm where your Yarn lockfile(s) live (root vs docs) so we can set cache-dependency-path accurately.

.github/workflows/scripts-lint.yml (1)

78-83: Prevent unintended caching in lint job or scope it to the correct lockfile.

setup-node v5 auto-caches if packageManager exists; for a lint-only job this is unnecessary and can add cache churn. Disable or scope explicitly.

 - uses: actions/setup-node@v5
   with:
     node-version: 20
+    package-manager-cache: false

If you prefer caching to speed up yarn yaml-check:

with:
  node-version: 20
  package-manager-cache: true
  cache-dependency-path: yarn.lock

Confirm whether the repository uses Yarn workspaces or multiple lockfiles; if so, list them to avoid cache key skew.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d08a2ff and 193d7b0.

📒 Files selected for processing (4)
  • .github/workflows/docs-auto-update.yml (1 hunks)
  • .github/workflows/docs-check.yml (1 hunks)
  • .github/workflows/docs-deploy.yml (1 hunks)
  • .github/workflows/scripts-lint.yml (1 hunks)
⏰ 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). (7)
  • GitHub Check: tests
  • GitHub Check: cargo-publish-dry-run
  • GitHub Check: tests-release
  • GitHub Check: All lint checks
  • GitHub Check: Build MacOS
  • GitHub Check: Build Ubuntu
  • GitHub Check: Build forest binaries on Linux AMD64

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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 (1)
.github/workflows/docs-check.yml (1)

33-34: Optional: consider bumping actions/checkout to v5 for consistency.

Not required for this PR, but aligning on the latest major of checkout reduces future churn across workflows.

Apply if desired:

-      - uses: actions/checkout@v4
+      - uses: actions/checkout@v5
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 193d7b0 and 65dd330.

📒 Files selected for processing (4)
  • .github/workflows/docs-auto-update.yml (1 hunks)
  • .github/workflows/docs-check.yml (1 hunks)
  • .github/workflows/docs-deploy.yml (1 hunks)
  • .github/workflows/scripts-lint.yml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (3)
  • .github/workflows/scripts-lint.yml
  • .github/workflows/docs-auto-update.yml
  • .github/workflows/docs-deploy.yml
⏰ 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). (8)
  • GitHub Check: Build forest binaries on Linux AMD64
  • GitHub Check: tests-release
  • GitHub Check: tests
  • GitHub Check: Build MacOS
  • GitHub Check: cargo-publish-dry-run
  • GitHub Check: Build Ubuntu
  • GitHub Check: All lint checks
  • GitHub Check: Check
🔇 Additional comments (1)
.github/workflows/docs-check.yml (1)

34-37: Approve: bump actions/setup-node@v5; package-manager-cache explicitly disabled

  • No remaining actions/setup-node@v4 occurrences.
  • package-manager-cache: false is set in .github/workflows/scripts-lint.yml, .github/workflows/docs-deploy.yml, .github/workflows/docs-check.yml, .github/workflows/docs-auto-update.yml; docs/package.json lists packageManager: yarn@4.9.2 — disabling auto PM cache is intentional.
  • Keeping node-version: 20 in the job is fine; actions/checkout@v4 is still used widely (optional separate bump).

@hanabi1224 hanabi1224 added this pull request to the merge queue Sep 15, 2025
Merged via the queue into main with commit da70b92 Sep 15, 2025
71 of 72 checks passed
@hanabi1224 hanabi1224 deleted the dependabot/github_actions/actions/setup-node-5 branch September 15, 2025 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants