ci: set cache-mode on release workflows - #378
Draft
claude[bot] wants to merge 1 commit into
Draft
Conversation
Add top-level `cache-mode: none` to release.yml so release runs never read from or write to the Actions cache, regardless of per-step settings. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MYe3WCXtgiqomNuVQdi4Yd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by David Sanders · Slack thread
Before: The release workflow inherits GitHub Actions' default cache access, so the release job (and the
test.ymljobs it calls viauses:) can restore and save Actions caches during a release run; today only the release job's own setup-node step opts out withpackage-manager-cache: false.After:
cache-mode: noneat the top ofrelease.ymldisables cache restore and save for every job in the release run, including the reusable test jobs, regardless of per-step settings. A denied cache step logs a message and continues; the job does not fail.This adopts GitHub's new
cache-modekey (changelog, syntax reference) so the release path never depends on Actions cache contents.How: one top-level
cache-mode: noneline (with a short comment) added to.github/workflows/release.yml. PR CI does not exercise the release workflow, so the first release after merge is the real test.🤖 Generated with Claude Code
https://claude.ai/code/session_01MYe3WCXtgiqomNuVQdi4Yd
Generated by Claude Code