From 91bed313563398849a124d91913cc35f1350a201 Mon Sep 17 00:00:00 2001 From: Jesse Katsumata Date: Sun, 22 Nov 2026 13:08:26 +0900 Subject: [PATCH] ci: stop setup-node caching in the SwiftPM job setup-node@v5 caches the packageManager from package.json automatically. The SwiftPM job never runs `yarn install`, so the Yarn cache folder never exists. On a cache miss, which happens on any PR that changes yarn.lock, the post-step save fails with "Path Validation Error" even though check-spm.mjs passed. Disable the package-manager cache for that job. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c1f2b254..faab143b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -82,6 +82,11 @@ jobs: - uses: actions/setup-node@v5 with: node-version: 22 + # setup-node@v5 caches the package manager named in package.json's + # `packageManager` on its own. This job never installs, so the cache + # folder never exists, and on a cache miss (any PR that changes + # yarn.lock) the post-step save fails the job. + package-manager-cache: false # No `yarn install`: the script uses node builtins, `git` and the Swift # toolchain the runner already ships. It does not build the package -- # see the comment at the top of the script for why that is not possible