Skip to content

Commit

Permalink
Update cache action runner
Browse files Browse the repository at this point in the history
The `actions/cache` package has released version 4.0 which updates the action runner to use Node 20.

Applying this fix gets rid of the following warning which is currently showing in the "Annotations" of workflows using the `ramsey/composer-install` action:
```
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
```

Note: most action runners have published these types of update in a new major, so that seems to be the best practice. Not sure if this update warrants a new major for `ramsey/composer-install` ?

Refs:
* https://github.com/actions/cache/releases/tag/v4.0.0
* https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
  • Loading branch information
jrfnl committed Jan 26, 2024
1 parent c49029a commit 9fc1be9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ runs:
- name: "Cache Composer dependencies"
if: steps.should-cache.outputs.do-cache == 1
uses: "actions/cache@v3"
uses: "actions/cache@v4"
with:
path: "${{ steps.composer.outputs.cache-dir }}"
key: "${{ steps.cache-key.outputs.key }}"
Expand Down

0 comments on commit 9fc1be9

Please sign in to comment.