Skip to content

chore(ci): enable npm cache in setup-node#12

Draft
ykstorm wants to merge 1 commit into
mainfrom
chore/ci-cache-npm-2026-07-18
Draft

chore(ci): enable npm cache in setup-node#12
ykstorm wants to merge 1 commit into
mainfrom
chore/ci-cache-npm-2026-07-18

Conversation

@ykstorm

@ykstorm ykstorm commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a setup-node step with cache: 'npm' to the build-docs job so subsequent runs restore ~/.npm from cache instead of downloading all deps fresh.

Why

npm ci currently runs cold every time; the build-docs job had no setup-node step at all, so no npm cache existed. cache-dependency-path points at docs-site/package-lock.json because npm ci runs in the docs-site/ working directory, not repo root.

Verification

Run the workflow twice; the second run's Setup Node step logs Cache restored from key: ... (cache HIT) in the Actions log. Other jobs (lint/smoke/gitops) are helm/kubeconform-only and untouched.

@coderabbitai

coderabbitai Bot commented Jul 19, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 25046376-5133-49d3-8641-ca50bd7c518c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/ci-cache-npm-2026-07-18

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant