Skip to content

Commit 9b9d65c

Browse files
mydeaclaude
andauthored
chore(ci): Bump actions/cache to v5 and actions/download-artifact to v7 (#20249)
## Summary - Upgrade `actions/cache/restore` and `actions/cache/save` from v4 to v5 in `install-playwright` and `restore-cache` composite actions - Upgrade `actions/download-artifact` from v4 to **v7** in `restore-cache` composite action (v5 still ran on Node 20; v7 runs on Node 24 and matches `actions/upload-artifact@v7` elsewhere) - This should fix warnings about Node 20 runner usage in CI ## Changelog ### `actions/cache` v4 → v5 - Only change is upgrading the Node.js runtime from 20 to 24 - No input/output parameter changes - No behavioral differences - Requires Actions Runner ≥ 2.327.1 (already satisfied by GitHub-hosted runners) ### `actions/download-artifact` v4 → v7 - **v7** updates the action runtime to Node.js 24 (`runs.using: node24`); v5 remained on Node 20, so it did not clear deprecation warnings for this step - Requires Actions Runner ≥ 2.327.1 (same as cache v5; satisfied by GitHub-hosted runners) - We download artifacts **by name** only; v5’s breaking changes around downloads **by ID** do not apply - Aligns with `actions/upload-artifact@v7` already used in workflows ## Affected files - `.github/actions/install-playwright/action.yml` — `cache/restore@v4` → `v5`, `cache/save@v4` → `v5` - `.github/actions/restore-cache/action.yml` — `cache/restore@v4` → `v5`, `download-artifact@v4` → `v7` ## Test plan - CI workflows pass (cache restore/save and artifact download work as before) - No changes to action inputs/outputs for our usage, so downstream step references remain valid --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 40a5b93 commit 9b9d65c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/actions/install-playwright/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ runs:
1818
working-directory: ${{ inputs.cwd }}
1919

2020
- name: Restore cached playwright binaries
21-
uses: actions/cache/restore@v4
21+
uses: actions/cache/restore@v5
2222
id: playwright-cache
2323
with:
2424
path: |
@@ -43,7 +43,7 @@ runs:
4343

4444
# Only store cache on develop branch
4545
- name: Store cached playwright binaries
46-
uses: actions/cache/save@v4
46+
uses: actions/cache/save@v5
4747
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
4848
with:
4949
path: |

.github/actions/restore-cache/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ runs:
1111
steps:
1212
- name: Check dependency cache
1313
id: dep-cache
14-
uses: actions/cache/restore@v4
14+
uses: actions/cache/restore@v5
1515
with:
1616
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
1717
key: ${{ inputs.dependency_cache_key }}
1818

1919
- name: Restore build artifacts
20-
uses: actions/download-artifact@v4
20+
uses: actions/download-artifact@v7
2121
with:
2222
name: build-output
2323

0 commit comments

Comments
 (0)