Skip to content

fix(ci): auto-detect node cache manager#33

Merged
ArchonVII merged 1 commit into
mainfrom
agent/codex/32-node-ci-pnpm-cache
May 31, 2026
Merged

fix(ci): auto-detect node cache manager#33
ArchonVII merged 1 commit into
mainfrom
agent/codex/32-node-ci-pnpm-cache

Conversation

@ArchonVII

@ArchonVII ArchonVII commented May 31, 2026

Copy link
Copy Markdown
Owner

Summary

  • Detects the Node package manager from lockfiles before actions/setup-node configures dependency caching.
  • Defaults the reusable Node CI cache mode to auto, so pnpm-only consumers use cache: pnpm instead of failing on a missing npm lockfile.
  • Installs pnpm before setup-node enables pnpm caching, and removes the hardcoded npm cache from repo-required-gate snapshot validation.
  • Adds workflow-structure tests for the reusable Node CI and aggregate gate wiring.

Fixes #32

Verification

  • npm test
  • PyYAML parsed .github/workflows/node-ci.yml and .github/workflows/repo-required-gate.yml
  • actionlint 1.7.7 .github/workflows/node-ci.yml .github/workflows/repo-required-gate.yml

Verification Notes

npm ci: installed 44 packages and reported 0 vulnerabilities.

npm test: 4 test files passed; 66 tests passed.

PyYAML parse command: loaded both changed workflow YAML files and printed yaml ok.

actionlint 1.7.7: completed with no findings against both changed workflow files.

Fixes pnpm-only consumers that failed before install because setup-node was
hardcoded to npm caching. Node CI now detects lockfiles before setup-node,
installs pnpm before enabling pnpm caching, and the aggregate gate no longer
hardcodes npm cache in snapshot validation.

Fixes #32

Co-Authored-By: OpenAI Codex <noreply@openai.com>
@ArchonVII
ArchonVII merged commit 00fbaab into main May 31, 2026
1 check passed
@ArchonVII
ArchonVII deleted the agent/codex/32-node-ci-pnpm-cache branch May 31, 2026 19:22
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.

Fix reusable Node CI pnpm cache detection

1 participant