Improvement

July 2, 20211 Minute Read

GitHub Actions: Setup-node now supports dependency caching

You can now run Node.js projects faster on GitHub Actions by enabling dependency caching on the setup-node action. setup-node supports caching from both npm and yarn package managers.

yaml
- uses: actions/setup-node@v2
  with:
    node-version: '14'
    cache: npm

For questions, visit the GitHub Actions community

Subscribe to our developer newsletter

Discover tips, technical guides, and best practices in our biweekly newsletter just for devs.

By submitting, I agree to let GitHub and its affiliates use my information for personalized communications, targeted advertising, and campaign effectiveness. See the GitHub Privacy Statement for more details.

GitHub Actions: Setup-node now supports dependency caching - GitHub Changelog