Updated ci.yml to cache dependencies using actions/setup-node. setup-node@v3 or newer has caching built-in.
About caching workflow dependencies
Jobs on GitHub-hosted runners start in a clean virtual environment and must download dependencies each time, causing increased network utilization, longer runtime, and increased cost. To help speed up the time it takes to recreate files like dependencies, GitHub can cache files that frequently use in workflows.
Solutions
Node.js projects can run faster on GitHub Actions by enabling dependency caching on the setup-node action.
Signed-off-by: jongwooo jongwooo.han@gmail.com
Overview
Updated
ci.yml
to cache dependencies using actions/setup-node.setup-node@v3
or newer has caching built-in.About caching workflow dependencies
Jobs on GitHub-hosted runners start in a clean virtual environment and must download dependencies each time, causing increased network utilization, longer runtime, and increased cost. To help speed up the time it takes to recreate files like dependencies, GitHub can cache files that frequently use in workflows.
Solutions
Node.js projects can run faster on GitHub Actions by enabling dependency caching on the setup-node action.
AS-IS
TO-BE
References
PR Checklist