echo "=== DEBUG ACTION CACHE ===" echo "Current time: $(date)" echo "Cache path: $CACHE_PATH" echo "Expected lockfile hash: $EXPECTED_HASH"
- name: Cache dependencies uses: actions/cache@v4 with: path: | ~/.npm node_modules key: $ runner.os -npm-$ hashFiles('package-lock.json') restore-keys: | $ runner.os -npm- debug-action-cache
You usually start looking into debug-action-cache for two reasons: echo "=== DEBUG ACTION CACHE ===" echo "Current
Let's simulate a broken pipeline. You have a monorepo with Python and Node.js. Your Python cache keeps restoring a 3-month-old virtual environment. debug-action-cache