Skip to content

GitHub Action for setting up Node.js with node_modules caching.

License

Notifications You must be signed in to change notification settings

flipgroup/action-nodejs-with-module-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Action Node.js with node_modules cache

GitHub Action for setting up Node.js via actions/setup-node with actions/cache to cache node_modules.

Usage

jobs:
  main:
    name: Use Node.js
    runs-on: ubuntu-latest
    steps:
      - name: Setup Node.js with cache
        id: node-with-cache
        uses: flipgroup/action-nodejs-with-module-cache@main
        with:
          version-file: .nvmrc
          # alternatively, use `version` input
          #version: 18.x
          additional-cache-path: ~/add/another/path # optional input argument
          cache-key-suffix: key-suffix              # optional input argument
      - name: Install npm packages
        if: steps.node-with-cache.outputs.cache-hit != 'true'
        run: npm ci

About

GitHub Action for setting up Node.js with node_modules caching.

Topics

Resources

License

Stars

Watchers

Forks